Changes between Initial Version and Version 1 of Ticket #8043, comment 2


Ignore:
Timestamp:
07/11/2016 06:32:38 PM (8 years ago)
Author:
Chris Staub

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8043, comment 2

    initial v1  
    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:
     1This 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{{{
     3sed -r -e 's:.*(#.*SUBPIXEL.*) .*:\1:' \
     4    -i include/freetype/config/ftoption.h
     5}}}
     6Therefore, 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:
    27{{{
    38  /*************************************************************************/