On Fri, Dec 14, 2001 at 08:27:20AM +0100, Andre Poenitz wrote:
> On Thu, Dec 13, 2001 at 11:06:14PM +0000, [EMAIL PROTECTED] wrote:
> > Modified files:
> >     lyx-devel/src/mathed/: ChangeLog math_support.C 
> > 
> > Log message:
> >     Fix handling of \mathfrak font.
> 
> Out of pure curiosity: what was broken and how does your patch fixed it?

If you didn't had the eufrak installed, then \mathfrak{A} was rendered using
fixed font.

The old code was

LyXFont const & whichFontBase(MathTextCodes type)
{
   switch (type) {
   case LM_TC_EUFRAK:
      if (math_font_available(LM_TC_EUFRAK))
         return MathFonts[FONT_EUFRAK];
      else
         return MathFonts[FONT_BB];
   ...
   }
}

bool math_font_available(MathTextCodes type)
{
   if (!font_available_initialized[type]) {
      font_available_initialized[type] = true;
      font_available[type] = fontloader.available(whichFontBase(type));
   }
   return font_available[type];
}
                
Try to think what happens when you call whichFontBase(LM_TC_EUFRAK) ...

Reply via email to