public class BasicFontSource extends Object implements FontSource
FontSource
. It just holds and returns the objects supplied at
construction time.Constructor and Description |
---|
BasicFontSource(FontStreamProvider provider)
Creates an instance which will hold the given provider along with an empty
FontAttributeSet . |
BasicFontSource(FontStreamProvider provider,
FontAttributeSet attributes)
Creates an instance which will hold the given objects.
|
Modifier and Type | Method and Description |
---|---|
FontAttributeSet |
getFontSourceAttributeSet()
Retrieve information about the
Font which can be created from this FontSource ,
such as its name or styles. |
FontStreamProvider |
getFontStreamProvider() |
String |
toString() |
public BasicFontSource(FontStreamProvider provider)
FontAttributeSet
.provider
- the instance to be returned by getFontStreamProvider()
public BasicFontSource(FontStreamProvider provider, FontAttributeSet attributes)
provider
- the instance to be returned by getFontStreamProvider()
attributes
- the instance to be returned by getFontSourceAttributeSet()
public FontAttributeSet getFontSourceAttributeSet()
FontSource
Font
which can be created from this FontSource
,
such as its name or styles. While it is expected that the resulting Font
will supply
information congruent with the information supplied here, this is not always the case, either
intentionally or due to errors.getFontSourceAttributeSet
in interface FontSource
Font
to be created from this FontSource
public FontStreamProvider getFontStreamProvider()
getFontStreamProvider
in interface FontSource
Copyright © 2024 levigo holding gmbh. All rights reserved.