mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Put again the (slightly edited) caution warning from Georg Baum about abusing the ucs4_to_qchar() conversion with symbol fonts. This comment was accidentally deleted in rev 18593.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18598 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
46b898cf3b
commit
1c2cf3567c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user