diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2017-02-02 22:59:15 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2017-02-02 22:59:21 +0100 |
commit | 529578f58c8221f7fe3deaceecec3a4cf3ff8f2d (patch) | |
tree | 8ed3858cdff0d0dce95a79a5bd41ea0f03d0448e /src/fontloader/misc/fontloader-font-otn.lua | |
parent | 7250ac958d842f45d28220db87203506d3ae65c0 (diff) | |
download | luaotfload-529578f58c8221f7fe3deaceecec3a4cf3ff8f2d.tar.gz |
[db] fix design size scaling
As discussed in issue #398.
Ad futuram rei memoriam the gist of it:
- For the index, all values are scaled (decipoints * sp) / 10 *
(7227 / 7200).
- The ``bp`` case (the default, OT-standard), needs no conversion
because it matches how values are stored in the index.
- The ``pt`` case essentially reverts the bp→pt part of scaling
done for the database by scaling the asked size by the same
factor, i. e. by 7227 / 7200.
- The ``dd`` needs an extra 1238 / 1157.
Requesting a font at 10pt will then:
- ask for a size of 655360 for ``bp`` / default;
- ask for 657817 for ``pt``;
- ask for 703870 for ``dd``.
Diffstat (limited to 'src/fontloader/misc/fontloader-font-otn.lua')
0 files changed, 0 insertions, 0 deletions