[cairo] Recommended method to use text on Windows CE/ Win32

Mohit Sindhwani ml3p at onghu.com
Mon Sep 28 18:14:22 PDT 2009

Behdad Esfahbod wrote:
> On 09/27/2009 04:19 AM, Mohit Sindhwani wrote:
>> Behdad Esfahbod wrote:
>>> Then just compile cairo with the win32 font backend and use
>>> cairo_show_text()?
>>> behdad
>> Hi Behdad,
>> Actually, I followed this:
>> http://vividos.wordpress.com/2008/01/23/how-to-compile-cairo-for-pocketpc/ 
>> And near the end, it says:
>> Since there is no easy solution for this, I just commented out the
>> function body, so text rendering isn’t supported by cairo on Windows CE
>> for now. Revisiting my changes to cairo, I saw that I tried to
>> reimplement GetCharacterPlacement and some more needed functions, but
>> that code has to be looked upon again. In the end I didn’t manage to
>> bring rendered text onto a cairo surface.
>> That's why I thought that cairo_show_text would probably not work 
>> directly.
> I have no idea what API is available on WinCE.  If you just want to 
> render some text and don't care about the font, you can compile cairo 
> with no native font backend and you'll get the internal font face.

Thanks!  I'm going to try that.  I did find that including win32_font.c 
throws up numerous errors.  But if I can get the basic bits working 
first, I can later see what else is supported.


More information about the cairo mailing list