[cairo] Recommended method to use text on Windows CE/ Win32
Mohit Sindhwani
ml3p at onghu.com
Sun Sep 27 03:23:25 PDT 2009
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.
>
Further to that, I went to enable HAS_WIN32_FONT and these are errors I
get (using Cairo 1.4.14 - will update to a newer version later):
1>cairo-win32-surface.c
1>.\src\cairo-win32-surface.c(100) : warning C4133: 'function' :
incompatible types - from 'LPSTR' to 'LPWSTR'
1>.\src\cairo-win32-surface.c(710) : warning C4133: 'function' :
incompatible types - from 'char [8]' to 'LPCWSTR'
1>.\src\cairo-win32-surface.c(1608) : error C2065: 'ETO_GLYPH_INDEX' :
undeclared identifier
1>.\src\cairo-win32-surface.c(1608) : error C2065: 'ETO_PDY' :
undeclared identifier
1>.\src\cairo-win32-surface.c(1788) : warning C4133: '=' : incompatible
types - from 'cairo_surface_t *' to 'cairo_win32_surface_t *'
1>.\src\cairo-win32-surface.c(1801) : warning C4133: '=' : incompatible
types - from 'cairo_surface_t *' to 'cairo_win32_surface_t *'
Need to take a closer look to see what needs doing.
Cheers,
Mohit.
9/27/2009 | 6:22 PM.
More information about the cairo
mailing list