To Subroutinize, Or Not To Subroutinize
One of the benefits of OpenType/CFF, whether you're building name-or CID-keyed fonts, is that the 'AFDKO makeotf tool can be used to apply subroutinization when building OpenType/CFF fonts. The tx tool, by using its "+S" option, can do so as well.
For name-keyed OpenType/CFF fonts, there are only global subroutines. For CID-keyed OpenType/CFF fonts, there are global and local subroutines. The global ones are shared by two or more FDArray elements (aka, hint dictionaries), and the local ones are specific to an FDArray element. How glyphs are assigned to an FDArray element can affect the distribution of global and local subroutines.
When subroutinizing smaller fonts, meaning those with relatively few glyphs, there really is no concern that subroutine limits will be reached. When the number of glyphs is significant, such as over 10,000, there is reason to be concerned because there are both implementation-specific and architecture limits on the number of subroutines. The architectural limit is "64K minus 3" (65,533), and there are known implementation-specific limits that are "32K minus 3" (32,765). The known implementations that limit the number of subroutines to "32K minus 3" are Mac OS X Version 10.4 (aka, Tiger) and earlier, and Adobe Acrobat Distiller Version 7.0 and earlier.
When dealing with name-keyed fonts, these subroutine limit figures are applied to the global subroutines, because there are no local ones. Things get a bit more complex with CID-keyed fonts because the number of subroutines is determined by adding the number of local subroutines for each FDArray element with the number of global ones. In other words, the combination of the global subroutines plus those from any one FDArray element (local) cannot exceed the limit.
The AFDKO tx tool can be used to display the number of global and local subroutines through the use of the appropriate command-line options. I spent yesterday evening writing subr-check.pl, which is a wrapper for tx that is written in Perl. The output below demonstrates why the Kozuka Mincho Pr6N family was released in unsubroutinized form:
Global Subroutines: 29933 (388715 bytes)
FD=0: 1696 (36302 bytes)
FD=1: 154 (2530 bytes)
FD=2: 1633 (30574 bytes)
FD=3: 6 (120 bytes)
FD=4: 168 (1680 bytes)
FD=5: 65 (747 bytes)
FD=6: 151 (2327 bytes)
FD=7: 163 (2437 bytes)
FD=8: 60 (1058 bytes)
FD=9: 87 (1332 bytes)
FD=10: 1057 (109449 bytes)
FD=11: 7143 (173874 bytes) >32K-3 limit: 37076 (7143 + 29933)
FD=12: 1785 (41891 bytes)
FD=13: 807 (17851 bytes)
FD=14: 809 (17682 bytes)
FD=15: 181 (10099 bytes)
Total Subroutine Size: 838668 bytes
The subr-check.pl tool is expected to be included in the next release of AFDKO, which should happen this year. But, until then, developers can use this tool now.
- ·The Future of Sex poster
- ·Top 100 Fonts.com Web Fonts for May 2016
- ·47 free tattoo fonts for your body art
- ·How to sell your typefaces
- ·Once Upon DESIGN: New Routes for Arabian Heritage
- ·Alphabet Stories by Hermann Zapf
- ·Type terms: the animated typographic cheat sheet
- ·TypeDecon Digital Download
- ·Linotype Ad: "Linotype vs. Intertype"
- ·The 52 best free graffiti fonts
游客ReviewFS Emeric字体：一款令人愉悦的新字体font article没看看有这款字体啊
我在这儿Review网页设计中的艺术字体设计与排版（1）font article很好 值得学习
新蒂字体 授权使用： 无需备案免费使用的情况： 在个人电脑上安装、打印个人文档、个人网站、博客、微博配图 需要备案免费使用的情况： 设计有可能商用的稿件（在商用时购买商业授权）、用于免费提供给他人的印刷品（印量在500份以内，且无需获得印刷品行政许可）的情况、用作没有品牌冠名的公益广告、用作完全免费（不能含有收费项目）的软件及网络服务。 需要购买个人授权的情况： 个人网店的装饰、个体商...