mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
Show on screen font changes for text-in-math
This commit is contained in:
parent
cdc75e872a
commit
4ad8be330e
@ -244,7 +244,8 @@ FontSetChanger::FontSetChanger(MetricsBase & mb, char const * name,
|
||||
ColorCode oldcolor = save_.font.color();
|
||||
docstring const oldname = from_ascii(save_.fontname);
|
||||
mb.fontname = name;
|
||||
mb.font = sane_font;
|
||||
if (isMathFont(from_ascii(name)) || isMathFont(oldname))
|
||||
mb.font = sane_font;
|
||||
augmentFont(mb.font, from_ascii(name));
|
||||
mb.font.setSize(oldsize);
|
||||
if (string(name) != "lyxtex"
|
||||
@ -264,7 +265,8 @@ FontSetChanger::FontSetChanger(MetricsBase & mb, docstring const & name,
|
||||
ColorCode oldcolor = save_.font.color();
|
||||
docstring const oldname = from_ascii(save_.fontname);
|
||||
mb.fontname = to_utf8(name);
|
||||
mb.font = sane_font;
|
||||
if (isMathFont(name) || isMathFont(oldname))
|
||||
mb.font = sane_font;
|
||||
augmentFont(mb.font, name);
|
||||
mb.font.setSize(oldsize);
|
||||
if (name != "lyxtex"
|
||||
|
@ -87,6 +87,9 @@ What's new
|
||||
|
||||
- Do not issue an error on missing characters in 'nullfont' (bug 10394).
|
||||
|
||||
- Fix on-screen display of font changes for text-in-math, so that now
|
||||
$\textbf{\textsc{a}}$ is also boldened on screen other than in output.
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user