]> git.lyx.org Git - features.git/commitdiff
Put again the (slightly edited) caution warning from Georg Baum about abusing the...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 31 May 2007 16:40:11 +0000 (16:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 31 May 2007 16:40:11 +0000 (16:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18598 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiFontMetrics.cpp

index d9e1348613f8d230e575a066d62d40e43d1c9704..6e40804ddd519f4cccc3109357267a17f4c3e244 100644 (file)
@@ -25,6 +25,13 @@ using std::string;
 namespace lyx {
 namespace frontend {
 
+// Caution: When using ucs4_to_qchar() in these methods, this is no
+// real conversion but a simple cast in reality. This is the reason
+// why this works well for symbol fonts used in mathed too, even though
+// these are not real ucs4 characters. These are codepoints in the
+// modern fonts used, nothing unicode related.
+// See comment in QLPainter::text() for more explanation.
+
 GuiFontMetrics::GuiFontMetrics(QFont const & font)
 : metrics_(font), smallcaps_metrics_(font), smallcaps_shape_(false)
 {