Commit 5747a59
committed
Recalculate default font when switching font backend
This is an updated version of the patch by Dmitry Antipov
<[email protected]> in
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23386#43>.
Fixes Bug#23386
* src/dispextern.h (struct redisplay_interface): New member
default_font_parameter.
* src/xterm.h: Add prototype for x_default_font_parameter.
* src/xterm.c (x_redisplay_interface): Initialize
default_font_parameter member.
* src/xfns.c (x_default_font_parameter): Make non-static.
* src/w32term.h: Add prototype for w32_default_font_parameter
* src/w32fns.c (w32_default_font_parameter): Make non-static.
* src/w32term.c (w32_redisplay_interface): Initialize
default_font_parameter member.
* src/nsterm.m (ns_redisplay_interface): Add dummy
ns_default_font_parameter (there is currently only one possible font
backend on macOS). Initialize default_font_parameter member.
* src/frame.c (gui_set_font_backend): Recalculate default font using
RIF default_font_parameter to avoid crash when changing font backend.1 parent a2dd8c4 commit 5747a59
9 files changed
+30
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3003 | 3003 | | |
3004 | 3004 | | |
3005 | 3005 | | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
3006 | 3009 | | |
3007 | 3010 | | |
3008 | 3011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4565 | 4565 | | |
4566 | 4566 | | |
4567 | 4567 | | |
4568 | | - | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
4569 | 4573 | | |
4570 | 4574 | | |
4571 | 4575 | | |
| |||
4579 | 4583 | | |
4580 | 4584 | | |
4581 | 4585 | | |
4582 | | - | |
4583 | | - | |
4584 | | - | |
4585 | | - | |
| 4586 | + | |
| 4587 | + | |
4586 | 4588 | | |
4587 | 4589 | | |
4588 | 4590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5132 | 5132 | | |
5133 | 5133 | | |
5134 | 5134 | | |
| 5135 | + | |
| 5136 | + | |
| 5137 | + | |
| 5138 | + | |
| 5139 | + | |
| 5140 | + | |
| 5141 | + | |
5135 | 5142 | | |
5136 | 5143 | | |
5137 | 5144 | | |
| |||
5167 | 5174 | | |
5168 | 5175 | | |
5169 | 5176 | | |
5170 | | - | |
| 5177 | + | |
| 5178 | + | |
5171 | 5179 | | |
5172 | 5180 | | |
5173 | 5181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5749 | 5749 | | |
5750 | 5750 | | |
5751 | 5751 | | |
5752 | | - | |
| 5752 | + | |
5753 | 5753 | | |
5754 | 5754 | | |
5755 | 5755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7249 | 7249 | | |
7250 | 7250 | | |
7251 | 7251 | | |
7252 | | - | |
| 7252 | + | |
| 7253 | + | |
7253 | 7254 | | |
7254 | 7255 | | |
7255 | 7256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3555 | 3555 | | |
3556 | 3556 | | |
3557 | 3557 | | |
3558 | | - | |
| 3558 | + | |
3559 | 3559 | | |
3560 | 3560 | | |
3561 | 3561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13374 | 13374 | | |
13375 | 13375 | | |
13376 | 13376 | | |
13377 | | - | |
| 13377 | + | |
| 13378 | + | |
13378 | 13379 | | |
13379 | 13380 | | |
13380 | 13381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
| 1059 | + | |
1059 | 1060 | | |
1060 | 1061 | | |
1061 | 1062 | | |
| |||
0 commit comments