\def\surd{^\lyxsurd}
\def\textdegree{\kern-1mu^{\circ}\kern-4mu}
else
+# FIXME: These don't work on OS X, since the Symbol font uses a different
+# encoding and is therefore disabled in FontLoader::available().
cong lyxsymbol 64 0 mathrel ≅
surd lyxsymbol 214 0 mathord √
textdegree lyxsymbol 176 0 mathord °
static vector<int> cache(NUM_FAMILIES, false);
FontFamily family = f.family();
+#ifdef Q_WS_MACX
+ // Apple ships a font name "Symbol", which has more or less the same
+ // glyphs as the original PostScript Symbol font, but it uses a different
+ // encoding (see https://en.wikipedia.org/wiki/Symbol_(typeface)#cite_note-2).
+ // Since we expect the font specific encoding of the original
+ // PostScript Symbol font, we can't use the one provided on OS X.
+ // See also the discussion in bug 7954.
+ if (f.family() == SYMBOL_FAMILY)
+ return false;
+#endif
if (cache_set[family])
return cache[family];
cache_set[family] = true;
}
-bool isUnicodeSymbolAvailable(docstring const & /*name*/, char_type & /*c*/)
+bool isUnicodeSymbolAvailable(docstring const & name, char_type & c)
{
- // this is too fragile, e.g. prodes W instead of capital omega on OS X
-#if 0
docstring cmd(from_ascii("\\") + name);
bool is_combining;
bool termination;
is_combining, termination);
}
return c != 0 && !is_combining;
-#else
- return false;
-#endif
}
// LyX internal usage
{"lyxtex", inh_family, inh_series,
UP_SHAPE, Color_latex},
+ // FIXME: The following two don't work on OS X, since the Symbol font
+ // uses a different encoding, and is therefore disabled in
+ // FontLoader::available().
{"lyxsymbol", SYMBOL_FAMILY, inh_series,
inh_shape, Color_math},
{"lyxboldsymbol", SYMBOL_FAMILY, BOLD_SERIES,