60 unsigned int *num_entries )
63 if (num_entries) *num_entries =
name.names.length;
68 template <
typename in_utf_t,
typename out_utf_t>
69 static inline unsigned int
71 unsigned int *text_size ,
72 typename out_utf_t::codepoint_t *
text )
74 unsigned int src_len = bytes.
length /
sizeof (
typename in_utf_t::codepoint_t);
75 const typename in_utf_t::codepoint_t *
src = (
const typename in_utf_t::codepoint_t *) bytes.
arrayZ;
76 const typename in_utf_t::codepoint_t *src_end =
src + src_len;
78 typename out_utf_t::codepoint_t *
dst =
text;
83 if (text_size && *text_size)
86 const typename out_utf_t::codepoint_t *dst_end =
text + *text_size;
88 while (
src < src_end &&
dst < dst_end)
90 const typename in_utf_t::codepoint_t *src_next =
in_utf_t::next (
src, src_end, &unicode, replacement);
104 unsigned int dst_len =
dst -
text;
105 while (
src < src_end)
108 dst_len += out_utf_t::encode_len (unicode);
113 template <
typename utf_t>
114 static inline unsigned int
118 unsigned int *text_size ,
119 typename utf_t::codepoint_t *
text )
133 return hb_ot_name_convert_utf<hb_utf16_be_t, utf_t> (bytes, text_size,
text);
136 return hb_ot_name_convert_utf<hb_ascii_t, utf_t> (bytes, text_size,
text);
169 unsigned int *text_size ,
172 return hb_ot_name_get_utf<hb_utf8_t> (
face, name_id,
language, text_size,
197 unsigned int *text_size ,
200 return hb_ot_name_get_utf<hb_utf16_t> (
face, name_id,
language, text_size,
text);
224 unsigned int *text_size ,
227 return hb_ot_name_get_utf<hb_utf32_t> (
face, name_id,
language, text_size,
text);
hb_language_t hb_language_from_string(const char *str, int len)
const hb_ot_name_entry_t * hb_ot_name_list_names(hb_face_t *face, unsigned int *num_entries)
unsigned int hb_ot_name_get_utf8(hb_face_t *face, hb_ot_name_id_t name_id, hb_language_t language, unsigned int *text_size, char *text)
unsigned int hb_ot_name_get_utf16(hb_face_t *face, hb_ot_name_id_t name_id, hb_language_t language, unsigned int *text_size, uint16_t *text)
unsigned int hb_ot_name_get_utf32(hb_face_t *face, hb_ot_name_id_t name_id, hb_language_t language, unsigned int *text_size, uint32_t *text)
unsigned int hb_ot_name_id_t
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
[3]
#define HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT
hb_blob_ptr_t< name > table