Giter Site home page Giter Site logo

use TTX tools to compile a otf file about afdko HOT 10 CLOSED

mhjy avatar mhjy commented on August 16, 2024
use TTX tools to compile a otf file

from afdko.

Comments (10)

mhjy avatar mhjy commented on August 16, 2024

why it didn't ganerate 'abc.otf' file?

from afdko.

punchcutter avatar punchcutter commented on August 16, 2024

Your ttx file must have come from a TTF. It depends what's in the file, but if it's not TTF specific (like glyf) then you just need to change the header of the ttx file from

<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.43">
to
<ttFont sfntVersion="OTTO" ttLibVersion="4.43">

from afdko.

punchcutter avatar punchcutter commented on August 16, 2024

Also, ttx is from fonttools and maintained there: https://github.com/fonttools/fonttools/blob/main/Lib/fontTools/ttx.py

from afdko.

mhjy avatar mhjy commented on August 16, 2024

My steps are:
1, Using FC(FontCreater) build the font file, and export to a otf file ( abc.otf)
2, Using ttx tools dump a .ttx file(abc.ttx) from .otf file. comand: ttx -q -f -t name -t head abc.otf
3, Modified some values in the .ttx file(abc.ttx)
4, Using ttx tools compile the new .ttx file to .otf file. comand: ttx -f -m abc.otf abc.ttx

which step is wrang?

from afdko.

mhjy avatar mhjy commented on August 16, 2024

after the commang 'ttx -q -f -t name -t head abc.otf', the head of .ttx file is :
image

ttx cann't dump ????

from afdko.

mhjy avatar mhjy commented on August 16, 2024

image

from afdko.

punchcutter avatar punchcutter commented on August 16, 2024

You have it set to TrueType in Outline Format. That will make a TTF even if the extension is otf.

from afdko.

mhjy avatar mhjy commented on August 16, 2024

FC exporting file is not a real otf file, only the extension name is otf??

from afdko.

punchcutter avatar punchcutter commented on August 16, 2024

That's what it looks like. If Outline Format is set to TrueType then it should be a TTF font.

from afdko.

mhjy avatar mhjy commented on August 16, 2024

I know. Thanks

from afdko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.