* src/encoding.[Ch]
(symbol_encoding, symbol_encoding_): remove (unused)
* src/frontends/qt4/QLPainter.C
(QLPainter::text): Remove commented code. It was used in pre
unicode times to get unicode values of the symbol fonts if
USE_UNICODE_FOR_SYMBOLS was defined, but this was never defined
anyway, since the code points of the symbol fonts (as written in
lib/symbols) are directly used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15758
a592a061-630c-0410-9148-
cb99ea01b6c8
Encodings::Encodings()
{
- symbol_encoding_ = Encoding("symbol", "", "");
}
void Encodings::read(string const & filename)
std::string iconvName_;
};
-extern Encoding symbol_encoding;
-
class Encodings {
public:
///
Encoding const * getFromLyXName(std::string const & name) const;
/// Get encoding from LaTeX name \p name
Encoding const * getFromLaTeXName(std::string const & name) const;
- ///
- Encoding const * symbol_encoding() { return &symbol_encoding_; }
///
enum Letter_Form {
private:
///
EncodingList encodinglist;
- ///
- Encoding symbol_encoding_;
};
extern Encodings encodings;
int QLPainter::text(int x, int y, char_type const * s, size_t ls,
LyXFont const & f)
{
-#if 0
- Encoding const * encoding = f.language()->encoding();
- if (f.isSymbolFont())
- encoding = encodings.symbol_encoding();
-#endif
-
QString str;
ucs4_to_qstring(s, ls, str);