Skip to content

How to generate metric xml file from ttf file #98

@mhao1999

Description

@mhao1999

I've read this issue, and issue below command to generate .pl file successfully, however, the result cannot be matched to the values from jlm_msbm10.xml, not only decimal place, but also the value itself, could you please kindly help me out? thanks.
PS C:\Program Files\MiKTeX\miktex\bin\x64> .\ttf2tfm.exe D:\tem\jlm_msbm10.ttf d:\tem\jlm_msbm10.tfm
PS C:\Program Files\MiKTeX\miktex\bin\x64> .\tftopl.exe D:\tem\jlm_msbm10.tfm D:\tem\jlm_msbm10.pl

the result are like:
(CHARACTER O 2
(CHARWD R 0.777)
(CHARHT R 0.646)
(CHARDP R 0.249)
)
(CHARACTER O 3
(CHARWD R 0.777)
(CHARHT R 0.836)
(CHARDP R 0.327)
)
(CHARACTER O 4
(CHARWD R 0.777)
(CHARHT R 0.836)
(CHARDP R 0.327)
)

but in the original file they are like (focus on values):

   <Char code="33" width="0.777781" height="0.635971" depth="0.135971" />
   <Char code="34" width="0.777781" height="0.757257" depth="0.251422" />
   <Char code="35" width="0.777781" height="0.757257" depth="0.251422" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions