Commit d33b79a
committed
fix: nk_font_config oversampling 3x horizontaly by default
See linked issue for very detailed explanation.
According to the commit that intoroduced this, it was suppoused to:
"oversample the default font to make it look better"
but it was oversampling every single font, potentially making it blurry.
This fix preserves old behavior for code that may still expect it,
but nk_font_config will now use oversample_h=1 by default.
Some demos achieve sharp font by scalling their pixel_size and in this
case there won't be any difference, but if someone used badly bahaving
font and didn't notice it only worked because of oversampling, that font
may now appear differently (this is unlikely but still possible).
Fixes: #855
Refs: 1d7f0241 parent e634a0d commit d33b79a
2 files changed
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17713 | 17713 | | |
17714 | 17714 | | |
17715 | 17715 | | |
17716 | | - | |
| 17716 | + | |
17717 | 17717 | | |
17718 | 17718 | | |
17719 | 17719 | | |
| |||
18021 | 18021 | | |
18022 | 18022 | | |
18023 | 18023 | | |
18024 | | - | |
18025 | | - | |
| 18024 | + | |
| 18025 | + | |
| 18026 | + | |
| 18027 | + | |
| 18028 | + | |
| 18029 | + | |
| 18030 | + | |
| 18031 | + | |
| 18032 | + | |
| 18033 | + | |
| 18034 | + | |
| 18035 | + | |
| 18036 | + | |
18026 | 18037 | | |
| 18038 | + | |
18027 | 18039 | | |
18028 | 18040 | | |
18029 | 18041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
| 868 | + | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
1177 | | - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1178 | 1189 | | |
| 1190 | + | |
1179 | 1191 | | |
1180 | 1192 | | |
1181 | 1193 | | |
| |||
0 commit comments