public interface AnnotationFontFactory extends FontFactory
AnnotationFontFactory
interface for annotation font support.
Implementations can be registered via
Annotations.setDefaultAnnotationFontFactory(AnnotationFontFactory)
method. Instances
supply Font
s upon request. Implementations must be Thread-safe and prepared to handle
lots of calls from various Threads concurrently.
Implementation note: Since instances are often used in time-critical environments, implementations must be quick to return an applicable font. Otherwise users might perceive document display to be slow.
Modifier and Type | Method and Description |
---|---|
Collection<FontAttributeSet> |
getAvailableFontAttributeSets()
Returns available fonts provided by this implementation described via
FontAttributeSet
class. |
create
Collection<FontAttributeSet> getAvailableFontAttributeSets()
FontAttributeSet
class.
This method is currently used by annotation based font face editors. Current implementations
provide a simple FontAttributeSet
definition containing FamilyName
attribute
only.FontAttributeSet
definitionCopyright © 2024 levigo holding gmbh. All rights reserved.