Bug: 4.0c Beta 2: Preview displays wrong Default font for label text in custom highlighting style

- Create a new custom highlighting palette.
- Right-click on it, and select "Create a new style."
- Click the little triangle to expand Label text.
- In any one of the Before/After/Above/Below Label text areas, type something, and then press Tab.
Result: The Preview box updates to display this text in the Default UI font rather than the Default resource font.
If you OK and then later apply this highlighting style to a selection in a resource, you will see that the label actually shows up in the Default resource font. Either the Preview window display was wrong (as I suspect), or the font used for that label when the highlighting style shows up in actual text is wrong.
Note that this only happens if you leave the font set at Default. If, before typing something in the Label text area, you select a different font, and then type the text, and then press Tab, it correctly updates to the font you've selected.
Comments
-
The Label text also shows up in the incorrect Default font in the Highlighting palette:
Here's my test case. First the style definition with Preview window displaying (incorrectly) the Default UI font instead of the Default resource font.
Now here's that same style showing in the palette after OK'ing the above:
Now here's that style applied to some text in a resource:
Note in the last image, "Before" displays in the Default serif font (default resource font).
This same problem occurs in After, Above, and Below label text.
0 -
Rosie Perera said:
Result: The Preview box updates to display this text in the Default UI font rather than the Default resource font.
I can reproduce this problem and have filed a bug report.
0