--001a11406c0af2d0a80560a1cec2 Content-Type: multipart/alternative; boundary="001a11406c0af2d0a50560a1cec0" --001a11406c0af2d0a50560a1cec0 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 18, 2017 at 1:39 PM, Behdad Esfahbod wrote: > Hi Werner, > > Is there any chance you can modify FT_Set_Var_Design_Coordinates() to > detect when the set face coordinates are not changed and shortcircuit out > early? Currently, if one calls that function too often (say, for every > glyph load, which is how we want to call it in cairo), it causes font > metrics and autohinter reinitialization even if the coordinates didn't > change. Can you please fix that? Matthias and I are hacking together this > week, trying to finish font variations support in the Pango stack. > > Thanks, > > -- > behdad > http://behdad.org/ > Here is a quick hack to demonstrate the idea --001a11406c0af2d0a50560a1cec0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Here is a quick hack to demonstrate the idea
--001a11406c0af2d0a50560a1cec0-- --001a11406c0af2d0a80560a1cec2 Content-Type: text/x-patch; charset="US-ASCII"; name="font-variations-shortcut.patch" Content-Disposition: attachment; filename="font-variations-shortcut.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jbck0gcn0 ZGlmZiAtLWdpdCBhL3NyYy9iYXNlL2Z0bW0uYyBiL3NyYy9iYXNlL2Z0bW0uYwppbmRleCBlMDEz MWVjZTMuLjFmMmJlNDZmOCAxMDA2NDQKLS0tIGEvc3JjL2Jhc2UvZnRtbS5jCisrKyBiL3NyYy9i YXNlL2Z0bW0uYwpAQCAtMjQsNiArMjQsNyBAQAogI2luY2x1ZGUgRlRfU0VSVklDRV9NVUxUSVBM RV9NQVNURVJTX0gKICNpbmNsdWRlIEZUX1NFUlZJQ0VfTUVUUklDU19WQVJJQVRJT05TX0gKIAor I2luY2x1ZGUgPGFsbG9jYS5oPgogCiAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwogICAvKiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKi8KQEAgLTIwMSw2ICsyMDIsMjUgQEAKICAgICBpZiAoICFlcnJvciApCiAgICAgewog ICAgICAgZXJyb3IgPSBGVF9FUlIoIEludmFsaWRfQXJndW1lbnQgKTsKKyAgICAgIGlmICggc2Vy dmljZV9tbS0+Z2V0X3Zhcl9kZXNpZ24gKQorICAgICAgICB7CisgICAgICAgICAgRlRfRml4ZWQg Km15X2Nvb3JkczsKKyAgICAgICAgICBGVF9VSW50IGk7CisKKyAgICAgICAgICBteV9jb29yZHMg PSBhbGxvY2EgKHNpemVvZihGVF9GaXhlZCkgKiBudW1fY29vcmRzKTsKKworICAgICAgICAgIGVy cm9yID0gc2VydmljZV9tbS0+Z2V0X3Zhcl9kZXNpZ24oIGZhY2UsIG51bV9jb29yZHMsIG15X2Nv b3JkcyApOworICAgICAgICAgIGlmIChlcnJvcikKKyAgICAgICAgICAgIHJldHVybiBlcnJvcjsK KworICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBudW1fY29vcmRzOyBpKyspCisgICAgICAgICAg ICB7CisgICAgICAgICAgICAgIGlmIChjb29yZHNbaV0gIT0gbXlfY29vcmRzW2ldKQorICAgICAg ICAgICAgICAgIGJyZWFrOworICAgICAgICAgICAgfQorICAgICAgICAgIGlmIChpID09IG51bV9j b29yZHMpCisgICAgICAgICAgICByZXR1cm4gMDsKKyAgICAgICAgfQogICAgICAgaWYgKCBzZXJ2 aWNlX21tLT5zZXRfdmFyX2Rlc2lnbiApCiAgICAgICAgIGVycm9yID0gc2VydmljZV9tbS0+c2V0 X3Zhcl9kZXNpZ24oIGZhY2UsIG51bV9jb29yZHMsIGNvb3JkcyApOwogICAgIH0K --001a11406c0af2d0a80560a1cec2 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel --001a11406c0af2d0a80560a1cec2--