[cairo] cairo_win32_font_face_create_for_hfont()

Elmar Braun elmar.braun at sh-p.de
Mon Mar 24 16:20:00 PDT 2008


Hi,

While testing Cairo 1.5.14 I've run across a problem with 
cairo_win32_font_face_create_for_hfont().

The attached source demonstrates the problem. It uses the same HFONT to 
create three cairo_font_face_t*: the first with create_for_hfont(), a 
second one with create_for_logfontw(), and a third one with 
create_for_logfontw_hfont(). In the attached PNG you can see that only 
the latter two draw with the right font (Times), whereas the first line, 
which uses create_for_hfont(), is drawn in a different, wrong font.

(I reported something similar quite a while ago for 1.4, but maybe it 
got overlooked.)

Regards,
Elmar
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test.cpp
Url: http://lists.cairographics.org/archives/cairo/attachments/20080325/686e434a/attachment.ksh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 2393 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080325/686e434a/attachment-0001.png 


More information about the cairo mailing list