* src/rowpainter.C

(RowPainter::paintHebrewComposeChar): Convert characters 0xf8 and
	0xe3 from CP1255 to UCS4 encoding


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17547 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-03-25 14:04:29 +00:00
parent b4831be219
commit 0071cd8140

View File

@ -253,12 +253,8 @@ void RowPainter::paintHebrewComposeChar(pos_type & vpos, LyXFont const & font)
if (isPrintableNonspace(c)) { if (isPrintableNonspace(c)) {
int const width2 = text_.singleWidth(par_, i, c, int const width2 = text_.singleWidth(par_, i, c,
text_.getFont(*bv_.buffer(), par_, i)); text_.getFont(*bv_.buffer(), par_, i));
// FIXME UNICODE dx = (c == 0x05e8 || // resh
// This does not work anymore, and non-ascii c == 0x05d3) // dalet
// characters in source files are forbidden
// anyway.
// dalet / resh
dx = (c == 'ø' || c == 'ã')
? width2 - width ? width2 - width
: (width2 - width) / 2; : (width2 - width) / 2;
} }
@ -267,7 +263,6 @@ void RowPainter::paintHebrewComposeChar(pos_type & vpos, LyXFont const & font)
} }
// Draw nikud // Draw nikud
// FIXME UNICODE
pain_.text(int(x_) + dx, yo_, str, font); pain_.text(int(x_) + dx, yo_, str, font);
} }