Skip to content

Commit

Permalink
Documenting the changes to axes values.
Browse files Browse the repository at this point in the history
  • Loading branch information
clauseggers committed Sep 16, 2023
1 parent 2a08968 commit 12e2d17
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 73 deletions.
6 changes: 3 additions & 3 deletions sources/Settings/2.1_axis_mappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ opsz = {
1200 = 1200;
};
wdth = {
87.5 = 95;
88 = 95;
100 = 100;
112.5 = 114;
113 = 113;
};
wght = {
300 = 360;
360 = 360;
400 = 400;
500 = 475;
600 = 550;
Expand Down
6 changes: 3 additions & 3 deletions sources/Settings/2.1_width_axis_mapping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Old internal SemiExpanded: 150

New internal SemiCondensed: 95
New internal Normal: 100
New internal SemiExpanded: 114
New internal SemiExpanded: 113

New external SemiCondensed: 87,5
New external SemiCondensed: 88
New external Normal: 100
New external SemiExpanded: 112,5
New external SemiExpanded: 113

This file was deleted.

11 changes: 5 additions & 6 deletions sources/Settings/The Playfair Axes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WEIGHT
======
Weight is approximately linearly scaled, except the 'SemiLight' weight, which is only the 360 internal value remapped to 300 to follow the CSS spec.
Internal weight External weight
360 300
360 360
400 400
475 500
550 600
Expand All @@ -41,12 +41,11 @@ Value Common weight name

WIDTH
=====
Width is linearly scaled, but with normal (external 100) set to internal 75.
[The external widths are rounded to the nearest integers because the Glyphs script "Instance Cooker" only supports integers. Instance Cooker is used to generate the instances.]
The external widths are rounded to the nearest integers because the Glyphs script "Instance Cooker" only supports integers. The Instance Cooker script and the Roman and Italic recipes are used to generate the static instances.
Internal width External width
50 88 (87.5)
75 100
150 113 (112.5)
95 88 (CSS specification is 87.5, but the Instance Cooker script can only do integers, so the nearest integer value is used. The internal value of 95 is chosen to allow the interpolation of this axis to be linear, thus extrema and 100 intersect the same line.)
100 100
113 113 (CSS specification is 112.5, but the Instance Cooker script can only do integers, so the nearest integer value is used)

CSS FONT-STRETCH (as per specification)
Keyword Percentage (Instance Cooker Class aka. OS/2 widthClass)
Expand Down
32 changes: 0 additions & 32 deletions sources/Settings/axis_mappings.txt

This file was deleted.

0 comments on commit 12e2d17

Please sign in to comment.