CID vs GID (Cont'd)
In yesterday's CJK Type Blog post, I introduced and provided three Perl tools for listing the CIDs and GIDs in font resources: extract-cids.pl, extract-gids.pl, and mkrange.pl. In my continued effort to provide font developers with useful tools, I spent a few minutes this morning to enhance two of these tools, specifically extract-cids.pl and mkrange.pl.
First, the extract-cids.pl tool was changed so that it emits CIDs with a slash ("/") prefix, which matches what the "-g" command-line option of various AFDKO tools expect when explicitly specifying CIDs, as opposed to GIDs.
Second, the mkrange.pl tool was enhanced in two significantly ways. The first enhancement was to simply detect and properly handle the slash ("/") prefix, which is shown in the example command line and its output below:
% extract-cids.plcidfont.ps| mkrange.pl
The second enhancement was to add a "-n" command-line option. By default, each CID or CID range (or GID or GID range, when the output of the extract-gids.pl tool is piped into this tool) is output on a separate line, as shown above. When the "-n" command-line option is invoked, each CID or CID range is separated by a comma, making the result ready to be used as the argument of the "-g" command-line option that is supported by various AFDKO tools. Below is an example command line and its output:
% extract-cids.plcidfont.ps| mkrange.pl-n
The extract-gids.pl tool is unchanged.
These minor enhancements are useful for my own font development work, and I hope that others also find them to be useful.
- ·He Invented a Font to Help People With Dyslexia Read
- ·XUID Arrays: One Less Thing To Worry About
- ·Linotype Ad: "Linotype vs. Intertype"
- ·Bevésett nevek (Carved Names), vol. 2
- ·How to Read a Painting by Patrick de Rynck
- ·Antropofagia. Palimpsesto Selvagem
- ·Iconic Transport for London logo undergoes subtle redesign
- ·Food Not Bombs hypothetical redesign
- ·Ad for Hello Dummy! by Don Rickles
- ·"Die Alpen – Vielfalt in Europa" stamp
游客's review on Article Billboard.com这个Billboard.com网站的字体是啥字体
lwhzyn's review on Article HZ-GB-2312系统好像缺少字库，看看能不能下载
游客's review on Article 2017年设计师绝对不能错过的手写字体搭配的挺好看，这些字体是免费商用的么
¤月映丹心∴'s review on Article 毛笔字体进化论怎么下载法？
糖果's review on Article 25个能让设计师用一辈子的字体免费用吗
游客's review on Article 三星发布自主字体SamsungOne：全平台通用哪里可以下载三星字体