Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> En direct tu peux me parler en Francais si tu veux :-)
Je préfère continuer sur la liste pour que les autres puissent
intervenir (ai je répondu en direct par erreur?)
Ouep.
Abdelrazak> Back to English, yes I understand what you mean but the
Abdelrazak> former metrics was the one of the Qt API not my doing. The
Abdelrazak> more complicated path can be reduced to:
I meant that there should be only one publicly available source of
metrics, and it should do caching.
There is only one LyX API. But I can't erase the other one provided by
Qt' QPainter::metrics().
But this is not _very_ important.
Indeed.
Abdelrazak> But I want to specialise the Qt fontloader to deal with
Abdelrazak> QString directly, thus avoiding the back and forth
Abdelrazak> conversion to ucs4 which shows in Bennett's profile.
It is probably better to have the width cache be as high-level as
possible, though.
I am not touching the location of the cache, I've just added a method to
deal with QString in addition to docstring. Of course, this new method
is only visible from the Qt frontend. This avoid a call to
ucs4_to_qstring() which shows in Bennett's profile. IIRC it showed also
in another profile from Andre.
Abdel.