作者 主題: TT_CONFIG_OPTION_BYTECODE_INTERPRETER  (閱讀 2715 次)

0 會員 與 1 訪客 正在閱讀本文。

statue

  • 憂鬱的高中生
  • ***
  • 文章數: 157
    • 檢視個人資料
    • http://netlab.cse.yzu.edu.tw/~statue/
TT_CONFIG_OPTION_BYTECODE_INTERPRETER
« 於: 2002-12-15 20:19 »
TT_CONFIG_OPTION_BYTECODE_INTERPRETER

include/freetype/config/ftoption.h

  /*************************************************************************/
  /*                                                                       */
  /* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile   */
  /* a bytecode interpreter in the TrueType driver.  Note that there are   */
  /* important patent issues related to the use of the interpreter.        */
  /*                                                                       */
  /* By undefining this, you will only compile the code necessary to load  */
  /* TrueType glyphs without hinting.                                      */
  /*                                                                       */
#define  TT_CONFIG_OPTION_BYTECODE_INTERPRETER

預設的 /usr/ports/print/freetype2 已經被打開了 @@"......
ttp://netlab.cse.yzu.edu.tw/~statue/

damon

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 4227
    • 檢視個人資料
    • http://blog.damon.tw/
TT_CONFIG_OPTION_BYTECODE_INTERPRETER
« 回覆 #1 於: 2002-12-15 21:32 »
請問這各選項有打開跟沒有打開差別在?

statue

  • 憂鬱的高中生
  • ***
  • 文章數: 157
    • 檢視個人資料
    • http://netlab.cse.yzu.edu.tw/~statue/
TT_CONFIG_OPTION_BYTECODE_INTERPRETER
« 回覆 #2 於: 2002-12-25 00:20 »
TrueType Hinting

"Hinting" is a TrueType specific feature, that is generally considered to be a useful technique that improves the appearance of TrueType fonts. Unfortunately, there are some licensing and patent issues involved with this, and it is disabled by default in the freetype sources! And also quite likely that if you are using vendor supplied binaries, it is disabled there as well.

To enable this feature, the sources need to be rebuilt. Look for include/freetype/config/ftoption.h in the freetype source tree, and then search for:

  #undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
 

And very simply, make this small change:

  #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
 

Red Hat users can rebuild the src.rpm by toggling one setting at the top, and accomplish the same thing:

  %define without_bytecode_interpreter    1
 

And change to:

  %define without_bytecode_interpreter    0
 

Other vendors may have a similar, easy-to-use mechanism.

Then rebuild and install the finished binaries. Be sure to restart X as well since the freetype code is already loaded into memory by X.

Note that "hinting", "anti-aliasing", and "sub-pixel rendering" are separate concepts (see the section on Xft below for more). Again, this is not a cure-all for "ugly" fonts, but one more piece in the puzzle of font "beautification".
ttp://netlab.cse.yzu.edu.tw/~statue/