cosmic-text/src/font/fallback
Mohammad AlSaleh 0cea55630c Use weight absolute difference in monospace fallback matching
When matching on weights smaller than normal, "equal or smaller"
 weight restriction may cause monospace fallback to fail, depending
 on font support at such weights for the text to be shaped.

 So remove that restriction, and calculate weight differences instead
 of offsets.

 In case of no exact weight match, and with all other factors being
 equal, smaller weights will be picked before bigger ones. So, this
 should generally not cause any behavioral changes when matching on
 normal weight or bigger.

 Should fix pop-os/cosmic-term#104.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-31 06:32:37 -07:00
..
macos.rs Run cargo fmt 2023-01-04 20:03:03 -07:00
mod.rs Use weight absolute difference in monospace fallback matching 2024-01-31 06:32:37 -07:00
other.rs Vi-style editor and other editor improvements (#40) 2022-11-15 12:26:59 -07:00
unix.rs Fix Noto Color Emoji font fallback order for Unix 2023-01-31 06:08:07 +01:00
windows.rs Run cargo fmt 2023-01-04 20:03:03 -07:00