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> |
||
|---|---|---|
| .. | ||
| macos.rs | ||
| mod.rs | ||
| other.rs | ||
| unix.rs | ||
| windows.rs | ||