Cosimo Lupo
b73969b2ff
ignore lsb, just use 0xFFFF for sparse advance
2023-08-02 15:54:34 +01:00
Cosimo Lupo
48ae9cbf1c
use 0 for sidebearing sparse metrics sentinel
...
font sources only allow to specify advances, the sidebearings are computed. Makes more sense for the sparse metrics to have 0 for the sidebearings as the glyph that's meant to be 'sparse' is most likely empty with no outlines
2023-08-02 15:12:26 +01:00
Cosimo Lupo
ecfc5eeeb7
varLib: use sentinel to mark glyph metrics as sparse
...
as discussed in https://github.com/googlefonts/ufo2ft/issues/501
2023-08-02 14:54:47 +01:00
Cosimo Lupo
c9963fd4cd
minor comment
2023-08-02 14:06:35 +01:00
Behdad Esfahbod
839e76b84d
[varLib/cff] Allow sparse masters
...
Fixes https://github.com/fonttools/fonttools/issues/3233
2023-08-01 11:26:54 -06:00
Behdad Esfahbod
91731f7d2a
[avarPlanner] Add more sizes
2023-07-26 12:49:23 -06:00
Behdad Esfahbod
7fce344404
[avarPlanner] Use interpolateLog for opsz
...
That's correct because weight is also exponential.
2023-07-26 10:31:08 -06:00
Behdad Esfahbod
6c1ce349e5
[avarPlanner] More docstrings
2023-07-24 16:59:27 -06:00
Behdad Esfahbod
3eeb13bded
[avarPlanner] Docstring planAxis()
2023-07-24 16:51:44 -06:00
Behdad Esfahbod
9b3747a30a
[avarPlanner] Minor shuffle argument order
2023-07-24 16:42:49 -06:00
Behdad Esfahbod
93b46ac1a3
[avarPlanner] Refactor more code
2023-07-24 15:56:44 -06:00
Behdad Esfahbod
f874873407
[avarPlanner] black
2023-07-24 15:13:34 -06:00
Behdad Esfahbod
340f90c7c7
[avarPlanner] Info message
2023-07-24 15:00:00 -06:00
Behdad Esfahbod
da5e6eb090
[avarPlanner] Docstring
2023-07-24 14:58:14 -06:00
Behdad Esfahbod
5d9f30230c
[avarPlanner] Fix copy/pasta
2023-07-24 14:56:27 -06:00
Behdad Esfahbod
dd30dd0c88
[avarPlanner] Refactor common code
2023-07-24 14:54:34 -06:00
Behdad Esfahbod
c95a0f916f
[avarPlanner] Move code around
...
Towards more refactoring.
2023-07-24 14:22:35 -06:00
Behdad Esfahbod
ca7267330b
[avarPlanner] Fix slant planning
2023-07-24 14:18:22 -06:00
Behdad Esfahbod
b2682d5935
[avarPlanner] Fix opsz planning
2023-07-24 14:06:44 -06:00
Behdad Esfahbod
9ec69d27d5
[avarPlanner] Fix opsz
2023-07-24 13:16:44 -06:00
Behdad Esfahbod
0751e3d31f
[avarPlanner] Plan optical-size axis
2023-07-24 13:11:51 -06:00
Behdad Esfahbod
7c6455f35d
[avarPlanner] Simplify axis limits
2023-07-24 13:00:03 -06:00
Behdad Esfahbod
4b7d7359a5
[varLib.avarPlanner] Better docstring
2023-07-24 11:54:40 -06:00
Behdad Esfahbod
f812fccbdb
[varLib.avarPlanner] Add docstring to main()
...
It now shows up in `fonttools --help`.
2023-07-24 11:50:52 -06:00
Behdad Esfahbod
0054a2e928
[varLib.avarPlanner] Add a couple more weights
2023-07-24 11:34:04 -06:00
Behdad Esfahbod
cd6382be6e
[varLib.avarPlanner] More warning messages
2023-07-24 11:33:16 -06:00
Behdad Esfahbod
9b30c63c56
[varLib.avarPlanner] Plan weight/width/slant in that order
2023-07-24 11:08:27 -06:00
Behdad Esfahbod
aadfc9390e
[varLib.avarPlanner] Turn a couple of log.info messages into debug
2023-07-24 10:04:22 -06:00
Behdad Esfahbod
0c27f22384
[varLib.avarPlanner] Format
2023-07-24 09:52:52 -06:00
Behdad Esfahbod
222319359b
[varLib.avarPlanner] Calculate slant axis average perceptually
2023-07-24 08:53:23 -06:00
Behdad Esfahbod
b06dec0e94
[varLib.avarPlanner] Add one-line docstrings
2023-07-24 08:48:49 -06:00
Behdad Esfahbod
0330d3c5b9
Black
2023-07-23 20:08:51 -06:00
Behdad Esfahbod
4502be761a
[varLib.avarPlanner] Rename --design-units to --design-limits
2023-07-23 19:57:15 -06:00
Behdad Esfahbod
b008a9d47f
[varLib.avarPlanner] Add assertions about input limits
2023-07-23 19:55:16 -06:00
Behdad Esfahbod
4d5c362a17
[varLib.avarPlanner] Fix slant axis tag
2023-07-23 19:45:20 -06:00
Behdad Esfahbod
8b30403baf
[varLib.avarPlanner] Fix pinning again
2023-07-23 19:16:44 -06:00
Behdad Esfahbod
8c5627e936
[varLib.avarPlanner] Messages
2023-07-23 19:12:08 -06:00
Behdad Esfahbod
41fa9090a0
[varLib.avarPlanner] Remove unused upem facilities
...
Was only correct for weight axis.
2023-07-23 19:08:13 -06:00
Behdad Esfahbod
68d1a34191
[varLib.avarPlanner] Fix width axis sanitization
2023-07-23 19:03:24 -06:00
Behdad Esfahbod
f2fc1ccd16
[varLib.axisPlanner] Fix sanitizeWidth()
2023-07-23 19:01:14 -06:00
Behdad Esfahbod
251d9f15a9
[varLib.avarPlanner] Plan slant (slnt
) axis
2023-07-23 18:25:26 -06:00
Behdad Esfahbod
47c858a2f2
[varLib.avarPlanner] Add axis-limit sanitization
2023-07-23 17:42:06 -06:00
Behdad Esfahbod
4b736f5747
[varLib.avarPlanner] Add axis-limit sanitazation
2023-07-23 17:02:01 -06:00
Behdad Esfahbod
cdf33a67fc
[varLib.avarPlanner] Add width axis planning
2023-07-23 16:45:53 -06:00
Behdad Esfahbod
887e45766a
Start adding width axis planning
2023-07-23 15:47:03 -06:00
Behdad Esfahbod
da0c5be0e8
[varLib.avarPlanner] Allow specifying frequencies on the cmdline
2023-07-23 15:42:52 -06:00
Behdad Esfahbod
b860194235
[varLib.avarPlanner] Internal variable rename
2023-07-23 14:55:24 -06:00
Behdad Esfahbod
ac7753c338
[varLib.avarPlanner] Add --design-units
2023-07-23 13:53:26 -06:00
Behdad Esfahbod
1ce57444bb
[varLib.avarPlanner] Handle fonts without wght axis
2023-07-23 13:08:40 -06:00
Behdad Esfahbod
4021f4fc4e
[varLib.avarPlanner] Add --pins
2023-07-23 12:26:40 -06:00