Commit 721f5b2
committed
Fix property sheet error from not finding labelMorph font
When getting the property sheet of a labelMorph that is using a font
that doesn't exist in the 'x11Globals scalableFont' list an error
occurs and the property sheet can't display.
The scalableFont list has an undefinedSelector method which handles
direct requests for fonts that don't exist and returns 'times'.
Unfortunately the enumeration of the fonts that the property sheet
uses just lists the selectors of 'fontFamily' so treats the
undefinedSelect method as a font name and hence the default handlin
never occurs.
This fix taken here adds a 'defaultFont' to the scalableFont list.
This returns 'times', the same as the undefined selector. The
property sheet looks this up if the actual font name can't be found.
I also remove the undefined selector slot name and a couple of other
non-font slots that were missed in the x11Globals fontFamily method.1 parent d126c6b commit 721f5b2
2 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | | - | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
560 | 567 | | |
561 | 568 | | |
562 | 569 | | |
563 | | - | |
| 570 | + | |
564 | 571 | | |
565 | 572 | | |
566 | 573 | | |
| |||
661 | 668 | | |
662 | 669 | | |
663 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
664 | 674 | | |
665 | 675 | | |
666 | 676 | | |
| |||
0 commit comments