1 | | This version of Freetype has made some changes in the support of subpixel hinting, which results in a compile error if the book's sed command to uncomment the SUBPIXEL defines is used as-is. The TT_CONFIG_OPTION_SUBPIXEL_HINTING define is now expected to be followed by a number, either "1", "2", or "3", for different ways of performing subpixel hinting. The default is to define option "2". Personally, I don't know enough about font rendering to understand the difference between those options, so for my own build scripts I just don't edit the SUBPIXEL_HINTING option and accept the default. Here's the relevant portion of ftoption.h: |
| 1 | This version of Freetype has made some changes in the support of subpixel hinting, which results in a compile error if this sed command in the book is used as-is: |
| 2 | {{{ |
| 3 | sed -r -e 's:.*(#.*SUBPIXEL.*) .*:\1:' \ |
| 4 | -i include/freetype/config/ftoption.h |
| 5 | }}} |
| 6 | Therefore, this command should be edited to change "SUBPIXEL" to "SUBPIXEL_RENDERING", so that the define for SUBPIXEL_HINTING is not affected by it. The TT_CONFIG_OPTION_SUBPIXEL_HINTING define is now expected to be followed by a number, either "1", "2", or "3", for different ways of performing subpixel hinting. The default is to define option "2". Personally, I don't know enough about font rendering to understand the difference between those options, so for my own build scripts I just don't edit the SUBPIXEL_HINTING option and accept the default. Here's the relevant portion of ftoption.h: |