How to decompose TTC fonts into TTFs.

Introduction

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.

Is TTC useless?

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 **.

TTC to TTF

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

How to decompose TTC fonts into TTFs.
Try to decompose the daimyo procession into Tucker
How to make scrapy JSON output into Japanese
How to embed mod_wsgi into Apache on Python Windows
How to list numbers by dividing them into n
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use Seaboan
How to use shogun
How to use Pandas 2
How to read PyPI
How to install pip
How to use Virtualenv
How to use numpy.vectorize
How to update easy_install
How to install archlinux
How to use pytest_report_header
How to restart gunicorn
How to install python
How to virtual host
How to debug selenium
How to use partial
How to use Bio.Phylo
How to read JSON
How to use SymPy
How to use x-means
How to update Spyder
How to use IPython
How to install BayesOpt
How to use virtualenv
How to use Matplotlib
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to grow dotfiles
How to use list []
How to use python-kabusapi
"How to count Fukashigi"
How to install Nbextensions
How to use OptParse
How to use return
How to install Prover9
How to use dotenv
How to operate NumPy
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
How to get into the python development environment with Vagrant
How to ssh into Azure App Service and enable venv
How to connect the contents of a list into a string