10 #if !defined(LE_USE_CMEMORY) && (defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || defined(U_STATIC_IMPLEMENTATION) || defined(U_COMBINED_IMPLEMENTATION))
11 #define LE_USE_CMEMORY
120 #define LE_GLYPH_MASK 0x0000FFFF
129 #define LE_GLYPH_SHIFT 0
138 #define LE_SUB_FONT_MASK 0x00FF0000
147 #define LE_SUB_FONT_SHIFT 16
156 #define LE_CLIENT_MASK 0xFF000000
165 #define LE_CLIENT_SHIFT 24
174 #define LE_GET_GLYPH(gid) ((gid & LE_GLYPH_MASK) >> LE_GLYPH_SHIFT)
182 #define LE_GET_SUB_FONT(gid) ((gid & LE_SUB_FONT_MASK) >> LE_SUB_FONT_SHIFT)
190 #define LE_GET_CLIENT(gid) ((gid & LE_CLIENT_MASK) >> LE_CLIENT_SHIFT)
199 #define LE_SET_GLYPH(gid, glyph) ((gid & ~LE_GLYPH_MASK) | ((glyph << LE_GLYPH_SHIFT) & LE_GLYPH_MASK))
207 #define LE_SET_SUB_FONT(gid, font) ((gid & ~LE_SUB_FONT_MASK) | ((font << LE_SUB_FONT_SHIFT) & LE_SUB_FONT_MASK))
215 #define LE_SET_CLIENT(gid, client) ((gid & ~LE_CLIENT_MASK) | ((client << LE_CLIENT_SHIFT) & LE_CLIENT_MASK))
276 #define LE_ARRAY_SIZE(array) (sizeof array / sizeof array[0])
278 #ifdef LE_USE_CMEMORY
284 #define LE_ARRAY_COPY(dst, src, count) uprv_memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0])
292 #define LE_NEW_ARRAY(type, count) (type *) uprv_malloc((count) * sizeof(type))
300 #define LE_GROW_ARRAY(array, newSize) uprv_realloc((void *) (array), (newSize) * sizeof (array)[0])
308 #define LE_DELETE_ARRAY(array) uprv_free((void *) (array))
321 #define LE_MAKE_TAG(a, b, c, d) \
322 (((le_uint32)(a) << 24) | \
323 ((le_uint32)(b) << 16) | \
324 ((le_uint32)(c) << 8) | \
559 #define LE_SUCCESS(code) (U_SUCCESS((UErrorCode)code))
566 #define LE_FAILURE(code) (U_FAILURE((UErrorCode)code))
le_uint16 TTGlyphID
Used for 16-bit glyph indices as they're represented in TrueType font tables.
uint32_t le_uint32
A type used for unsigned, 32-bit integers.
UChar32 LEUnicode32
Used to represent 32-bit Unicode code points.
le_uint32 LETag
Used for four character tags.
An illegal argument was detected.
uint16_t le_uint16
A type used for unsigned, 16-bit integers.
The requested resource cannot be found.
LETableTags
This enumeration defines constants for the standard TrueType, OpenType and AAT table tags...
UChar LEUnicode16
Used to represent 16-bit Unicode code points.
Trying to access an index that is out of bounds.
Indicates a bug in the library code.
int8_t le_int8
A type used for signed, 8-bit integers.
Trying to access the index that is out of bounds.
int32_t le_int32
A type used for signed, 32-bit integers.
UBool le_bool
A type used for boolean values.
The requested file cannot be found.
float fX
The x coordinate of the point.
float fY
The y coordinate of the point.
Requested operation not supported in current context.
A resource bundle lookup returned a result from the root locale (not an error)
Start of codes indicating failure.
You must call layoutChars() first.
An internal error was encountered.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
The requested font file cannot be opened.
LEErrorCode
Error codes returned by the LayoutEngine.
C++ API: Common ICU base class UObject.
uint8_t le_uint8
A type used for unsigned, 8-bit integers.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
The requested font table does not exist.
UChar LEUnicode
Used to represent 16-bit Unicode code points.
le_uint32 LEGlyphID
Used for glyph indices.
The font does not contain subfonts.
Basic definitions for ICU, for both C and C++ APIs.
LEFeatureTags
This enumeration defines constants for all the common OpenType feature tags.
int8_t UBool
The ICU boolean type.
int16_t le_int16
A type used for signed, 16-bit integers.
Used to hold a pair of (x, y) values which represent a point.