Got the data to fix my font scaling issues, I think. Now I need to integrate switch out my unit conversion for something that works for more than just my demo!
Conversation
Notices
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 11:13:00 JST Adrian Cochrane -
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 11:39:54 JST Adrian Cochrane Nope, I'm not getting the right conversion factor... Seeing a significant regression...
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 12:01:30 JST Adrian Cochrane Dividing by ppem gets closer than dividing by scale... Still excessive spacing though! Seems to be off by a factor of 5 for some reason...
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 12:18:31 JST Adrian Cochrane Double the fontsize & I barely need a correction factor at all...
Wish Harfbuzz documented the units it was using!
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 12:23:24 JST Adrian Cochrane Double the fontsize again & the letter spacing becomes much too small... As opposed to slightly too big...
I'm definitely using the wrong parameter even if it looked initially promising.
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 13:29:28 JST Adrian Cochrane Find where I get the upem conversion factor from FreeType, mixed in the font-scale, & now it looks like I'm getting close!
Playing around it now appears I'm off by a constant factor *regardless* of font-size! Progress! Documentation would suggest that constant-factor would be (if I recall correctly) 16.
-
Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 17-Feb-2023 13:44:43 JST Adrian Cochrane YESS!!!!!!
Turned out the missing constant factor was a half! ppem/upem/2 is the appropriate conversion factor for Harfbuzz, unless you configure another.
Committing...
-