From 5c497ef1635e4141fb4bbba0d85ebe9fcabd0f5c Mon Sep 17 00:00:00 2001 From: Maximilian Berger Date: Thu, 29 May 2008 12:03:48 +0000 Subject: [PATCH] Added docs for my recent commit (word-by-word character selection) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@661310 13f79535-47bb-0310-9956-ffa450edef68 --- .../content/xdocs/trunk/fonts.xml | 50 ++++++++++++------- status.xml | 3 ++ 2 files changed, 35 insertions(+), 18 deletions(-) diff --git a/src/documentation/content/xdocs/trunk/fonts.xml b/src/documentation/content/xdocs/trunk/fonts.xml index 30b72ffac..e713fe08a 100644 --- a/src/documentation/content/xdocs/trunk/fonts.xml +++ b/src/documentation/content/xdocs/trunk/fonts.xml @@ -22,7 +22,7 @@ Apache FOP: Fonts $Revision$ - + @@ -96,14 +96,14 @@ yes (used for layout but not for output) no - - +
Auto-Detect and auto-embed feature @@ -425,14 +426,14 @@
- Substitution -

When a <substitutions/> section is defined in the configuration, FOP will re-map any font-family references found in your FO input to a given substitution font.

-
    -
  • If a <substitution/> is declared, it is mandatory that both a <from/> and <to/> child element is declared with a font-family attribute.
  • -
  • Both font-weight and font-style are optional attributes, if they are provided then a value of 'normal' is assumed.
  • -
-

For example you could make all FO font-family references to 'Arial' with weights between 700 and 900 reference the normal 'Arial Black' font.

- Substitution +

When a <substitutions/> section is defined in the configuration, FOP will re-map any font-family references found in your FO input to a given substitution font.

+
    +
  • If a <substitution/> is declared, it is mandatory that both a <from/> and <to/> child element is declared with a font-family attribute.
  • +
  • Both font-weight and font-style are optional attributes, if they are provided then a value of 'normal' is assumed.
  • +
+

For example you could make all FO font-family references to 'Arial' with weights between 700 and 900 reference the normal 'Arial Black' font.

+ @@ -448,7 +449,7 @@ ]]>
- +
+ Font Selection Strategies +

+ There are two font selection strategies: character-by-character or auto. The default is auto.

+

Auto selected the first font from the list which is able to display the most characters in a given word. This means (assume font A has characters for abclmn, font B for lnmxyz, fontlist is A,B):

+
    +
  • aaa lll xxx would be displayed in fonts A A B
  • +
  • aaaxx would be displayed in font A
  • +
  • aaaxxx would be displayed in font A
  • +
  • aaaxxxx would be displayed in font B
  • +
+

Character-by-Character is NOT yet supported!

+
diff --git a/status.xml b/status.xml index 2f0df7c31..6bf44759a 100644 --- a/status.xml +++ b/status.xml @@ -57,6 +57,9 @@ Added SVG support for AFP (GOCA). + + Implemented word-by-ford font-selection strategy on text. + Support character-by-character font-selection strategy on fo:character element. -- 2.39.5