[scribus-dev] Scribus CTL

Jean Ghali jghali at libertysurf.fr
Tue Feb 23 23:06:48 UTC 2016


Le 23/02/2016 22:31, Khaled Hosny a écrit :
>>
>> I’ll keep that in mind. We don’t use FontConfig, and since Scribus
>> already depends on FreeType, building Cairo with FreeType font backend
>> adds no extra dependencies and should be a reasonable expectation (we
>> should just make sure CMake checks for this).

Building cairo with freetype on Windows is indeed possible. However 
cairo freetype backend depends on fontconfig on Linux. So it should be 
checked that not using fontconfig will not trigger unwanted behavior 
differences.

Another remark: in ScImagePainter drawGlyph(), a cairo_font_face_t 
object is repeatedly created and destroyed for each painted glyph. This 
is probably slow. You should likely think about adding a setFace method 
(setFont is already used) so as to create and cache the cairo font 
object inside ScImagePainter. By doing so one can create/destroy this 
object only once per glyph run instead of once per glyph.



More information about the scribus-dev mailing list