|
aXSL API 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommonFontPa
The XSL-FO Common Font properties.
Note that the methods for the font-family, font-selection-strategy,
font-style, font-weight, font-stretch, and font-variant properties have been
moved to CommonFontExcludedPa.
They are not included in this client-facing interface, being replaced by the
getPrimaryFont(FoContext) and
getSecondaryFont(FoContext, int) methods, which return resolved
font objects instead of the properties used to select them.
Note also that font-size and font-size-adjust are moved to
CommonFontExcludedPa, being needed only as factors in computing the
actual font-size in traitFontSizeActual(FoContext, Font).
| Method Summary | |
|---|---|
FontUse |
getPrimaryFont(FoContext context)
Provides a resolved font to be used as the primary font for this object. |
FontUse |
getSecondaryFont(FoContext context,
int codePoint)
Provides a resolved font that can be used as the secondary font for a specific character in this object. |
int |
traitFontSizeActual(FoContext context,
Font font)
Returns the "actual" value for font-size, as distinguished from the "computed" value. |
| Method Detail |
|---|
int traitFontSizeActual(FoContext context,
Font font)
context - An object that knows how to resolve FO Tree context
issues.font - The "available font", as defined in XSL-FO 1.1, Section
7.9.6, that is, the font actually used.
This must be passed to this method because both the font-size and
font-size-adjust properties are inherited, and apply to the fo:character
object.
Since the selected font can change from one character to the next, when
it does, the actual font-size can change also.
FontUse getPrimaryFont(FoContext context)
context - An object that knows how to resolve FO Tree context
issues.
FontUse instance for this object.
FontUse getSecondaryFont(FoContext context,
int codePoint)
context - An object that knows how to resolve FO Tree context
issues.codePoint - The character for whom a secondary font should be found.
This char is really the content of an fo:character object, and
presumably has no glyph in the font returned by
getPrimaryFont(FoContext).
FontUse instance that has a glyph
for codePoint.
|
aXSL API 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.