{"action":"created","issue":{"url":"https://api.github.com/repos/snowie2000/mactype/issues/186","repository_url":"https://api.github.com/repos/snowie2000/mactype","labels_url":"https://api.github.com/repos/snowie2000/mactype/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/snowie2000/mactype/issues/186/comments","events_url":"https://api.github.com/repos/snowie2000/mactype/issues/186/events","html_url":"https://github.com/snowie2000/mactype/issues/186","id":177338438,"number":186,"title":"翻新 FreeType2——新功能和安全性","user":{"login":"Artoria2e5","id":6459309,"avatar_url":"https://avatars.githubusercontent.com/u/6459309?v=3","gravatar_id":"","url":"https://api.github.com/users/Artoria2e5","html_url":"https://github.com/Artoria2e5","followers_url":"https://api.github.com/users/Artoria2e5/followers","following_url":"https://api.github.com/users/Artoria2e5/following{/other_user}","gists_url":"https://api.github.com/users/Artoria2e5/gists{/gist_id}","starred_url":"https://api.github.com/users/Artoria2e5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artoria2e5/subscriptions","organizations_url":"https://api.github.com/users/Artoria2e5/orgs","repos_url":"https://api.github.com/users/Artoria2e5/repos","events_url":"https://api.github.com/users/Artoria2e5/events{/privacy}","received_events_url":"https://api.github.com/users/Artoria2e5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-16T03:30:23Z","updated_at":"2016-10-26T01:21:39Z","closed_at":"2016-09-26T01:27:54Z","body":"FreeType 这事儿我看[一直都有人在提](https://github.com/snowie2000/mactype/issues?utf8=%E2%9C%93&q=freetype)，结果很多 Google Code 过来的事情好像没结束就给 close 了……\r\n\r\n稍微安利一下新版本那么……\r\n\r\n* 2.7: “更像 DirectWrite”的 TrueType Hinting \"[v40](https://www.freetype.org/freetype2/docs/subpixel-hinting.html)\" 解释器，支持次像素（有开关可调）\r\n  * 之前原版 FreeType 的 v35 解释器基本上是 XP 的水平——整像素对齐\r\n  * 从 Infinality 合并进来的 v38 基本上是 [MS ClearType 的方式](https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx)\r\n  * FreeType 的人觉得 v38 太慢了（MS 那套很折腾，可配置参数也太多），发现敲掉水平对齐长得也差不多，出来了 v40\r\n* 2.6.2: 对于液晶次像素渲染滤镜参数的[调整](https://www.freetype.org/freetype2/docs/text-rendering-general.html)\r\n  * 新滤镜在色彩上是均衡的，截图缩小不会五颜六色\r\n  * 新滤镜达到完美色彩表现需要正确 Gamma 颜色混合处理\r\n  * 正确 Gamma 会让小字变淡，所以有个笔画加粗功能\r\n* 2.5:  Adobe CFF（“OpenType 轮廓”）字体渲染器 #89 \r\n  * 之后的 2.5.x 版本修复了 Adobe 家渲染器的安全漏洞（Orz）\r\n* 2.5: 彩色 Emoji 渲染（Google）\r\n  * [![Noto Color Emoji](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Emoji_u1f424.svg/128px-Emoji_u1f424.svg.png)](https://commons.wikimedia.org/wiki/File:Emoji_u1f424.svg)\r\n* 2.4.x: 各种 Type 1 安全漏洞，不过也不关 Windows 用户事……\r\n\r\n关于 Infinality 的 FT 补丁：目前这些东西主要的意义不是额外功能（适合进 FreeType 的都进去了），而是可配置性（各种环境变量和把老东西重新捞出来加开关）。\r\n\r\nMacType 需要能够提供配置的地方（[Property](https://www.freetype.org/freetype2/docs/reference/ft2-module_management.html#FT_Property_Get)）：\r\n\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#darkening-parameters(autofit)\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-cff_driver.html#darkening-parameters(cff)\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#default-script\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#fallback-script\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#glyph-to-script-map\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-cff_driver.html#hinting-engine(cff)\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#increase-x-height\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-tt_driver.html#interpreter-version\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#no-stem-darkening(autofit)\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-cff_driver.html#no-stem-darkening(cff)\r\n* https://www.freetype.org/freetype2/docs/reference/ft2-auto_hinter.html#warping\r\n\r\n对于彩色 emoji 需要做出的调整：\r\n\r\n* 如果用到 `FT_Load_Glyph` 的话 `| FT_LOAD_COLOR` 一下。没用到的话就算了没戏了。（\r\n"},"comment":{"url":"https://api.github.com/repos/snowie2000/mactype/issues/comments/256224506","html_url":"https://github.com/snowie2000/mactype/issues/186#issuecomment-256224506","issue_url":"https://api.github.com/repos/snowie2000/mactype/issues/186","id":256224506,"user":{"login":"IceMan81","id":1093778,"avatar_url":"https://avatars.githubusercontent.com/u/1093778?v=3","gravatar_id":"","url":"https://api.github.com/users/IceMan81","html_url":"https://github.com/IceMan81","followers_url":"https://api.github.com/users/IceMan81/followers","following_url":"https://api.github.com/users/IceMan81/following{/other_user}","gists_url":"https://api.github.com/users/IceMan81/gists{/gist_id}","starred_url":"https://api.github.com/users/IceMan81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IceMan81/subscriptions","organizations_url":"https://api.github.com/users/IceMan81/orgs","repos_url":"https://api.github.com/users/IceMan81/repos","events_url":"https://api.github.com/users/IceMan81/events{/privacy}","received_events_url":"https://api.github.com/users/IceMan81/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T01:21:39Z","updated_at":"2016-10-26T01:21:39Z","body":"@snowie2000 Could you elaborate on how the mactype settings relate to the freetype settings? For example, to use the build above with the new cleartype hinting, what settings should I use in mactype? And should I set to use the new default lcd filter for sub-pixel rendering?\r\nhttps://www.freetype.org/freetype2/docs/text-rendering-general.html#the-default-lcd-filter-for-subpixel-rendering-has-been-changed\r\n\r\nSorry for commenting on a closed ticket, but this had the most relevant context. \r\n"}}
{"actor":{"display_login":"IceMan81"}}