您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

关于TrueType字体的gasp技术说明

柳鲲鹏 发布时间:2022-10-10 09:06:37 ,浏览量:0

  在JDK的TrueTyepFont类中,看到以下注释:

/*

      This is to obtain info from the TT 'gasp' (grid-fitting and       scan-conversion procedure) table which specifies three combinations:       Hint, Smooth (greyscale), Hint and Smooth.       In this simplified scheme we don't distinguish the latter two. We       hint even at small sizes, so as to preserve metrics consistency.       If the information isn't available default values are substituted.       The more precise defaults we'd do if we distinguished the cases are:

      Bold (no other style) fonts :       0-8 : Smooth ( do grey)       9+  : Hint + smooth (gridfit + grey)

      Plain, Italic and Bold-Italic fonts :       0-8 : Smooth ( do grey)       9-17 : Hint (gridfit)       18+  : Hint + smooth (gridfit + grey)

      The defaults should rarely come into play as most TT fonts provide       better defaults.       REMIND: consider unpacking the table into an array of booleans       for faster use.

*/

    @Override     public boolean useAAForPtSize(int ptsize) {  

  具体意思我也没看得太明白。初步看与字体的bitmap模式无关。

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0463s