sun.font |
|
Java Source File Name | Type | Comment |
AttributeMap.java | Class | |
AttributeValues.java | Class | |
BidiUtils.java | Class | |
CharToGlyphMapper.java | Class | |
CMap.java | Class | |
CompositeFont.java | Class | |
CompositeFontDescriptor.java | Class | Encapsulates the information that 2D needs to create a composite font,
the runtime representation of a logical font. |
CompositeGlyphMapper.java | Class | |
CompositeStrike.java | Class | |
CoreMetrics.java | Class | |
Decoration.java | Class | This class handles underlining, strikethrough, and foreground and
background styles on text. |
DelegatingShape.java | Class | To avoid people downcasting Shape to a known mutable subclass and
mucking with its internals, we need to interpose a subclass that
cannot be mutated or downcasted. |
EAttribute.java | enum | |
ExtendedTextLabel.java | Class | An extension of TextLabel that maintains information
about characters. |
ExtendedTextSourceLabel.java | Class | Default implementation of ExtendedTextLabel. |
FileFont.java | Class | |
FileFontStrike.java | Class | |
Font2D.java | Class | |
Font2DHandle.java | Class | |
FontDesignMetrics.java | Class | |
FontFamily.java | Class | |
FontLineMetrics.java | Class | Metrics from a font for layout of characters along a line
and layout of set of lines. |
FontManager.java | Class | |
FontManagerNativeLibrary.java | Class | |
FontResolver.java | Class | This class maps an individual character to a Font family which can
display it. |
FontRunIterator.java | Class | Iterates over runs of fonts in a CompositeFont, optionally taking script runs into account. |
FontScaler.java | Class | |
FontScalerException.java | Class | |
FontStrike.java | Class | |
FontStrikeDesc.java | Class | |
FontStrikeDisposer.java | Class | |
FreetypeFontScaler.java | Class | |
GlyphLayout.java | Class | |
GlyphList.java | Class | |
GraphicComponent.java | Class | |
LayoutPathImpl.java | Class | |
NullFontScaler.java | Class | |
PhysicalFont.java | Class | |
PhysicalStrike.java | Class | |
Script.java | Class | |
ScriptRun.java | Class | ScriptRun is used to find runs of characters in
the same script, as defined in the Script class.
It implements a simple iterator over an array of characters.
The iterator will assign COMMON and INHERITED
characters to the same script as the preceeding characters. |
ScriptRunData.java | Class | |
StandardGlyphVector.java | Class | Standard implementation of GlyphVector used by Font, GlyphList, and
SunGraphics2D.
The main issues involve the semantics of the various transforms
(font, glyph, device) and their effect on rendering and metrics.
Very, very unfortunately, the translation component of the font
transform affects where the text gets rendered. |
StandardTextSource.java | Class | |
StrikeCache.java | Class | A FontStrike is the keeper of scaled glyph image data which is expensive
to compute so needs to be cached.
So long as that data may be being used it cannot be invalidated.
Yet we also need to limit the amount of native memory and number of
strike objects in use.
For scaleability and ease of use, a key goal is multi-threaded read
access to a strike, so that it may be shared by multiple client objects,
potentially executing on different threads, with no special reference
counting or "check-out/check-in" requirements which would pass on the
burden of keeping track of strike references to the SG2D and other clients.
A cache of strikes is maintained via Reference objects.
This helps in two ways :
1. |
StrikeMetrics.java | Class | |
SunLayoutEngine.java | Class | |
TextLabel.java | Class | A label. |
TextLabelFactory.java | Class | A factory for text labels. |
TextLineComponent.java | Interface | |
TextRecord.java | Class | |
TextSource.java | Class | A text source represents text for rendering, plus context information. |
TextSourceLabel.java | Class | Implementation of TextLabel based on String. |
TrueTypeFont.java | Class | TrueTypeFont is not called SFntFont because it is not expected
to handle all types that may be housed in a such a font file.
If additional types are supported later, it may make sense to
create an SFnt superclass. |
TrueTypeGlyphMapper.java | Class | |
Type1Font.java | Class | |
Type1GlyphMapper.java | Class | |
Underline.java | Class | This class provides drawing and bounds-measurement of
underlines. |