Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
456 views
in Technique[技术] by (71.8m points)

xsl fo - Why won't Antenna House Formatter 6.2 on Windows 10 x64 recognize my Helvetica fonts?

On Windows 10, whether using the Antenna House 6.2 GUI or via command line through oXygen 23, Antenna House is not acknowledging my Helvetica fonts.

(confirmation that they are installed)

enter image description here

(Antenna House font-config.xml)

<?xml version="1.0" encoding="UTF-8" ?>
<!-- DOCTYPE font-config SYSTEM "font-config.dtd" -->
<font-config
    otf-metrics-mode="typographic"
    name-processing-mode="windows-name">
  <!-- add your font folder here -->
  <font-folder path="C:WindowsFonts"/>
</font-config>

(reference within XSL)

<fo:block font-family="Helvetica" ...

(error from Antenna House as shown within oXygen 23)

enter image description here

question from:https://stackoverflow.com/questions/65870763/why-wont-antenna-house-formatter-6-2-on-windows-10-x64-recognize-my-helvetica-f

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The usual advice for Windows is to not use a font-config.xml file because AH Formatter on Windows searches C:WindowsFonts by default. See https://www.antenna.co.jp/AHF/help/v70e/ahf-font.html#font-configration-file

Windows 10 also has per-user font directories. Are you sure that your font did not end up in your per-user directory? AH Formatter V6.2 predates both Windows 10 and the support for per-user directories in later AH Formatter versions. In this case you would need to have your own font-config.xml file to get AH Formatter to also search the per-user directory.

If you preview the font on Windows, is the 'Font name:' field just 'Helvetica' or is it something like 'HelveticaRegular'? You should base the font-family value on the name in the file.

I am assuming that you are using the font-config.xml file in the default location or you are using the correct environment variable to tell AH Formatter where to find another font-config.xml file, but you might want to check to be sure.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...