[vlc-devel] [RFC PATCH] freetype: using Pango for text layout

Rémi Denis-Courmont remi at remlab.net
Fri Jan 23 09:49:44 CET 2015


Le 2015-01-22 13:00, Salah-Eddin Shaban a écrit :
> Thanks :)
> I think you're right. It does seem like an endianness issue.
>
> Is this the official way to handle such an issue?

No. VLC has dedicated functions for byte endianess conversion and 
others for character sets conversion. But UTF-8 is endian-independent by 
design, so this is rather suspicious.

Regardless the only reason why UTF-32 is involved is FreeType. I have 
not checked pango's documentation. But it is more modern, so I would 
expect it to support UTF-8 to some extent, especially the high-level 
API.

> I mean is endian.h a standard header on all platforms?

No. You can look up ISO C and POSIX specifications online by the way...

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list