Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   FOP: Fonts, auto-detect + embedded (https://www.delphipraxis.net/191478-fop-fonts-auto-detect-embedded.html)

hoika 20. Jan 2017 09:16

FOP: Fonts, auto-detect + embedded
 
Hallo,
ich versuche, eine PDFa-Datei zu erzeugen.
Dazu müssen die Fonts in der PDF eingebunden sein (embedded), siehe auch

https://xmlgraphics.apache.org/fop/2.1/fonts.html

In meiner fop.conf steht entweder das:
<fonts>
<font metrics-url="./make-Fonts/arial.ttf.xml" kerning="yes" embed-url="file:///c:/windows/Fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
</font>
oder ab 2.0 gibt es das auto-detect
<fonts>
<directory>C:\WINDOWS\Fonts</directory>

<!-- directory recursive="true"></directory -->

<auto-detect/>
</font>

In beiden Fällen habe ich aber das C:\Windows drin.
Und in Fall 2 kann ich jetzt das embedded nicht angeben!
Den Pfad auf den aktuellen Windows-Pfad zu ändern, ist ja leicht, aber wie bekomme ich beim Auto-Detect das embedded mit rein?


Hat jemand einen Tip für mich?


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz