I wanted to engrave a logo on a 3D model, and when I was looking for a way to extract only the outline from the font, I found a very good article.
-Try to convert all glyphs of TTF to PNG --Qiita
In this article, I explained in detail how to read glyphs from TTF files and write them to SVG files, and how to convert them to PNG.
Knowing how to extract contours from a font, I randomly tried it, but when I tried a ** TTC file **, I stumbled upon the following ** error **.
fontTools.ttLib.TTLibError: specify a font number between 0 and 2 (inclusive)
I don't know the meaning of the error, but it was cool from ** TTF file **, so I usually thought it would be nice if I could convert ** TTC file to TTF file **.
As soon as I looked it up, I found a super helpful article.
-Decompose fonts in ttc format | Magic Angler
According to the article, TTC seems to be a combination of multiple TTFs, and ** "decompose" ** is correct instead of ** "convert" ** from TTC to TTF. And the tool that was introduced as the method was ** UniteTTC **, which also changed ** TTC to TTF **. It seems that ** TTF can be changed to TTC **.
UniteTTC This is the page of the person who distributes free fonts. ** [UniteTTC] available on ** Windows ** and ** Linux ** (http://yozvox.web.fc2.com/556E697465545443.html) ** You can download the tool.
Since it is a ** command line tool **, answer the appropriate place and use it from the ** command prompt **.
This time, in the environment of ** win10 64bit **, extract ** TTF file ** from ** meiryo.ttc **.
Simply type the following at the command prompt:
C:\Users\maboy\Desktop\unitettc>unitettc64 meiryo.ttc
cmd.exe
C:\Users\maboy\Desktop\unitettc>unitettc64 meiryo.ttc
UniteTTC Copyright (C) Y.Oz 2017
Font #1: meiryo001.ttf
Font #2: meiryo002.ttf
Font #3: meiryo003.ttf
Font #4: meiryo004.ttf
Ok.
C:\Users\maboy\Desktop\unitettc>
It will retrieve ** TTF file ** in an instant.
The extracted ** TTF files ** are saved in the same directory with serial numbers.
Recommended Posts