freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] endianness macros


From: Alexei Podtelezhnikov
Subject: [ft-devel] endianness macros
Date: Tue, 16 Aug 2016 13:29:03 -0400

Werner,

If I understand correctly FreeType API, only TrueType header tables
are parsed and readily available as structures.

https://www.freetype.org/freetype2/docs/reference/ft2-truetype_tables.html

Other tables like loca and glyf can be provided to the user as byte
streams through FT_Load_Sfnt_Table, but user has to parse it. So
endianness becomes important to parse integers. Freetype documentation
can be improved here, btw. Freetype does not seem to provide macros to
parse integers with endianness in mind. Do you think we should have
public

FT_OT_TO_INT16
FT_OT_TO_INT32

Something like this?
http://linux.die.net/man/3/endian

Alexei



reply via email to

[Prev in Thread] Current Thread [Next in Thread]