Dear Wiki user, You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.
The following page has been changed by MaxBerger: http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy ------------------------------------------------------------------------------ + == Current Status == + + As of Jan 2009. + + Fonts are set with the "font-family" property, which can list multiple fonts separated by a comma. + + Fop currently implements font-auto-selection on two levels: + + * A "fo:character" will automatically use the first font from the current list of font-families which contains the needed glyph + + * Normal text implementes a "word-by-word" stragey + + * font-selection "auto" in fop means word-by-word + + * character-by-character is not implemented, and the font-selection-stragey property is therefore ignored. + + === Word-by-Word === + + For each word, we go through every character and count how many characters are displayable in every font. The font which can display the most characters of the word is used. If multiple fonts can display the same number of characters, the first one of those listed in the font-famly property is used. + + ==== Examples ==== + + font-family="A, B" + assume A can display xy, B can display yz. + + {{{ + xxx -> A + yyy -> A + zzz -> B + + xxyy -> A + xxzz -> A + yyzz -> B + + xxxz -> A + xxzz -> A + xzzz -> B + }}} + + Implementation Rationale: This is due to the issues mentioned below, which do not allow an easy split of the alignment properties for each character. + + = Previous Information (2007) = + This page gathers thoughts and information for implementing the font-selection-strategy property, or in other words, for supporting the evaluation of the font character by character in a text. Not every font supports every glyph, so if you specify font-family="Times, Symbol", FOP should, in the end, paint latin characters using Times and symbol characters with the Symbol font without the need of a work-around like an fo:wrapper or fo:character to get the right font. === Tasks === --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
