- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FOP 1.0
Hallo zusammen,
Es ist mรถglich in FS5 eigene Fonts in der fop.xconf zu definieren?
Wenn ja.
Wo sollen diese Konfigurationsdatei liegen?
Wir brauchen auf eine PDF-Seite verschiedenen Fonts mit unterschiedlichen "weight"-Eigenschaften
Danke & Grรผรe,
Fidel
z.B.:
......
......
<fonts> | |
..... | |
<!-- Arial Bold --> | |
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf"> | |
<font-triplet name="Arial" style="normal" weight="bold"/> | |
<font-triplet name="ArialMT" style="normal" weight="bold"/> | |
</font> | |
..... | |
<!-- Andere Schriftarten --> | |
</fonts> |
......
.......
- Labels:
-
Developers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Schriftarten kannst du รผber die Administrationsoberflรคche zu FirstSpirit hinzufรผgen. Den dort vergebenen Namen kannst du auch im FOP benutzen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Peter,
Super es hat funktioniert. Leider die "font-weight"-Eigenschaften funktioniert es nicht.
Die verschiedene "font-weight" werden nicht dargestellt. Hast du eine Idee woran es liegen kann?
Danke.
z.B.:
<fo:block font-size="20pt" font-family="Arial">
<fo:inline font-weight="800">800 Weight </fo:inline>
<fo:inline font-weight="700">700 Weight </fo:inline>
<fo:inline font-weight="600">600 Weight </fo:inline>
<fo:inline font-weight="500">500 Weight </fo:inline>
<fo:inline font-weight="400">400 Weight </fo:inline>
<fo:inline font-weight="300">300 Weight </fo:inline>
</fo:block>
<fo:block white-space-collapse="true" font-size="16pt" font-family="Georgiab">
<fo:inline font-weight="800">800 Weight </fo:inline>
<fo:inline font-weight="700">700 Weight </fo:inline>
<fo:inline font-weight="600">600 Weight </fo:inline>
<fo:inline font-weight="500">500 Weight </fo:inline>
<fo:inline font-weight="400">400 Weight </fo:inline>
<fo:inline font-weight="300">300 Weight </fo:inline>
</fo:block>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ich fรผrchte, da kann ich nicht weiterhelfen. Ich bin weder ein Schriften- noch ein FOP-Experte
Findet sich im Netz nichts dazu?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Fidel,
die Unterstรผtzung fรผr font-weight ist bei Apache-FOP noch als partial gekennzeichnet siehe hier http://xmlgraphics.apache.org/fop/compliance.html
Versuch mal anstelle der numerischen Werte bold oder bolder.
Siehe auch hier: http://www.w3.org/TR/xsl/#font-weight
Viele Grรผรe
Thorsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hรถrt sich das nicht etwas nach deinem Problem an: http://apache-fop.1065347.n5.nabble.com/Fw-font-weight-and-font-family-not-working-together-td11242....
Du kรถnntest mal mit dem generierte XSL:FO mit einer lokalen FOP Instanz ein PDF erzeugen und testen, ob es dort mit deiner Konfiguration funktioniert.
Gruร
Thorsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Thorsten,
Danke fรผr die Antwort.
Ich habe es lokal ausprobiert und es hat funktioniert, aber nur wenn die fop.xconf-Datei richig konfiguriert ist.
z.B.
fopconfig
....
<font metrics-url="fonts/arial.xml" kerning="yes" embed-url="fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-url="fonts/arialbd.xml" kerning="yes" embed-url="fonts/arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="Arial" style="normal" weight="700"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
......
test.fo
.....
<fo:block font-size="20pt" font-family="Arial" >
<fo:inline font-weight="normal">Arial Normal </fo:inline>
<fo:inline font-weight="700">Arial Weight 700</fo:inline>
</fo:block>
.....
Ausgabe:
Es kann aber in der fopconfig falsche Eigenschaften eintragen werden, heiรt es aber nicht das es richtig dargestellt wird.
z.B.:
fopconfig
.....
<font metrics-url="fonts/arial.xml" kerning="yes" embed-url="fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="Arial" style="normal" weight="700"/>
<font-triplet name="Arial" style="normal" weight="800"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
.....
test.fo
.....
<fo:block font-size="20pt" font-family="Arial" >
<fo:inline font-weight="normal">Arial Normal </fo:inline>
<fo:inline font-weight="700">Arial Weight 700</fo:inline>
</fo:block>
.....
Ausgabe:
Welches "font-weight" setzt FS bei der FOP-Generierung als Default?
Danke & Grรผรe,
Fidel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welches "font-weight" setzt FS bei der FOP-Generierung als Default?
400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Peter,
Ist der Wert festcodiert? Kann man diesen Wert verรคndert?
Danke.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
รber FirstSpirit ist das nicht รคnderbar. Ob es in FOP selber eine Mรถglichkeit gibt, nachtrรคglich "font-weight" zu รคndern bzw. neue Triplets hinzuzufรผgen (und das mรถglichst noch im Rendering-Prozess) ist mir leider nicht bekannt.

