• Home
  • Raw
  • Download

Lines Matching +full:libharfbuzz +full:-

30 #include "hb-machinery.hh"
35 * SECTION:hb-common
36 * @title: hb-common
65 …if (0 == strncmp (c, name, p - c) && strlen (name) == static_cast<size_t>(p - c)) do { u.opts.symb… in _hb_options_init()
67 OPTION ("uniscribe-bug-compatible", uniscribe_bug_compatible); in _hb_options_init()
85 * @str: (array length=len) (element-type uint8_t): String to convert
86 * @len: Length of @str, or -1 if it is `NULL`-terminated
119 * @buf: (out caller-allocates) (array fixed-size=4) (element-type uint8_t): Converted string
147 * @str: (array length=len) (element-type uint8_t): String to convert
148 * @len: Length of @str, or -1 if it is `NULL`-terminated
153 * examples, "LTR" and "left-to-right" will both return #HB_DIRECTION_LTR.
168 * all of "ltr", "left-to-right", etc work! in hb_direction_from_string()
191 if (likely ((unsigned int) (direction - HB_DIRECTION_LTR) in hb_direction_to_string()
193 return direction_strings[direction - HB_DIRECTION_LTR]; in hb_direction_to_string()
208 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '-', 0, 0,
211 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 0, 0, 0, 0, '-',
239 h = (h << 5) - h + canon_map[*p];
275 /* Thread-safe lockfree language list */
288 hb_language_item_t *next = first_lang->next; in free_langs()
289 first_lang->fini (); in free_langs()
301 for (hb_language_item_t *lang = first_lang; lang; lang = lang->next) in lang_find_or_insert()
309 lang->next = first_lang; in lang_find_or_insert()
311 if (unlikely (!lang->lang)) in lang_find_or_insert()
319 lang->fini (); in lang_find_or_insert()
333 * @str: (array length=len) (element-type uint8_t): a string representing
335 * @len: length of the @str, or -1 if it is `NULL`-terminated.
354 /* NUL-terminate it. */ in hb_language_from_string()
356 len = hb_min (len, (int) sizeof (strbuf) - 1); in hb_language_from_string()
364 return likely (item) ? item->lang : HB_LANGUAGE_INVALID; in hb_language_from_string()
374 * A `NULL`-terminated string representing the @language. Must not be freed by
384 return language->s; in hb_language_to_string()
412 language = hb_language_from_string (hb_setlocale (LC_CTYPE, nullptr), -1); in hb_language_get_default()
439 const char *l = language->s; in hb_language_matches()
440 const char *s = specific->s; in hb_language_matches()
448 (s[ll] == '\0' || s[ll] == '-'); in hb_language_matches()
476 /* These graduated from the 'Q' private-area codes, but in hb_script_from_iso15924_tag()
506 * @str: (array length=len) (element-type uint8_t): a string representing an
508 * @len: length of the @str, or -1 if it is `NULL`-terminated.
547 * set horizontally. All right-to-left scripts will return
548 * #HB_DIRECTION_RTL. All left-to-right scripts will return
563 /* Unicode-1.1 additions */ in hb_script_get_horizontal_direction()
567 /* Unicode-3.0 additions */ in hb_script_get_horizontal_direction()
571 /* Unicode-4.0 additions */ in hb_script_get_horizontal_direction()
574 /* Unicode-4.1 additions */ in hb_script_get_horizontal_direction()
577 /* Unicode-5.0 additions */ in hb_script_get_horizontal_direction()
581 /* Unicode-5.1 additions */ in hb_script_get_horizontal_direction()
584 /* Unicode-5.2 additions */ in hb_script_get_horizontal_direction()
593 /* Unicode-6.0 additions */ in hb_script_get_horizontal_direction()
596 /* Unicode-6.1 additions */ in hb_script_get_horizontal_direction()
600 /* Unicode-7.0 additions */ in hb_script_get_horizontal_direction()
608 /* Unicode-8.0 additions */ in hb_script_get_horizontal_direction()
611 /* Unicode-9.0 additions */ in hb_script_get_horizontal_direction()
614 /* Unicode-11.0 additions */ in hb_script_get_horizontal_direction()
619 /* Unicode-12.0 additions */ in hb_script_get_horizontal_direction()
622 /* Unicode-13.0 additions */ in hb_script_get_horizontal_direction()
626 /* Unicode-14.0 additions */ in hb_script_get_horizontal_direction()
629 /* Unicode-16.0 additions */ in hb_script_get_horizontal_direction()
652 * SECTION:hb-version
653 * @title: hb-version
658 * library used at compile- as well as run-time, and to direct code
659 * conditionally based on those versions, again, at compile- or run-time.
748 * such that -1 turns into "big number"... */ in parse_uint()
760 * such that -1 turns into "big number"... */ in parse_uint32()
778 if (*pp - p == 2 in parse_bool()
782 else if (*pp - p == 3 in parse_bool()
798 if (parse_char (pp, end, '-')) in parse_feature_value_prefix()
799 feature->value = 0; in parse_feature_value_prefix()
802 feature->value = 1; in parse_feature_value_prefix()
825 if (p == *pp || *pp - p > 4) in parse_tag()
828 *tag = hb_tag_from_string (p, *pp - p); in parse_tag()
834 if (*pp - p != 4) in parse_tag()
851 feature->start = HB_FEATURE_GLOBAL_START; in parse_feature_indices()
852 feature->end = HB_FEATURE_GLOBAL_END; in parse_feature_indices()
857 has_start = parse_uint (pp, end, &feature->start); in parse_feature_indices()
860 parse_uint (pp, end, &feature->end); in parse_feature_indices()
863 feature->end = feature->start + 1; in parse_feature_indices()
873 bool had_value = parse_uint32 (pp, end, &feature->value) || in parse_feature_value_postfix()
874 parse_bool (pp, end, &feature->value); in parse_feature_value_postfix()
875 /* CSS doesn't use equal-sign between tag and value. in parse_feature_value_postfix()
876 * If there was an equal-sign, then there *must* be a value. in parse_feature_value_postfix()
877 * A value without an equal-sign is ok, but not required. */ in parse_feature_value_postfix()
885 parse_tag (pp, end, &feature->tag) && in parse_one_feature()
894 * @str: (array length=len) (element-type uint8_t): a string to parse
895 * @len: length of @str, or -1 if string is `NULL` terminated
901 * font-feature-settings values other than 'normal' and the global values are
908 * The format is Python-esque. Here is how it all works:
919 …* <row><entry>-kern</entry> <entry>0</entry> <entry>0</entry> <entry>∞</entry> <ent…
968 * Converts a #hb_feature_t into a `NULL`-terminated string in the format
982 if (feature->value == 0) in hb_feature_to_string()
983 s[len++] = '-'; in hb_feature_to_string()
984 hb_tag_to_string (feature->tag, s + len); in hb_feature_to_string()
986 while (len && s[len - 1] == ' ') in hb_feature_to_string()
987 len--; in hb_feature_to_string()
988 if (feature->start != HB_FEATURE_GLOBAL_START || feature->end != HB_FEATURE_GLOBAL_END) in hb_feature_to_string()
991 if (feature->start) in hb_feature_to_string()
992 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
993 if (feature->end != feature->start + 1) { in hb_feature_to_string()
995 if (feature->end != HB_FEATURE_GLOBAL_END) in hb_feature_to_string()
996 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
1000 if (feature->value > 1) in hb_feature_to_string()
1003 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%" PRIu32, feature->value)); in hb_feature_to_string()
1006 len = hb_min (len, size - 1); in hb_feature_to_string()
1020 variation->value = v; in parse_variation_value()
1027 return parse_tag (pp, end, &variation->tag) && in parse_one_variation()
1035 * @str: (array length=len) (element-type uint8_t): a string to parse
1036 * @len: length of @str, or -1 if string is `NULL` terminated
1042 * font-variation-settings values other than 'normal' and 'inherited' are also
1046 * number. For example `wght=500`, or `slnt=-7.5`.
1118 * @buf: (array length=size) (out caller-allocates): output string
1121 * Converts an #hb_variation_t into a `NULL`-terminated string in the format
1135 hb_tag_to_string (variation->tag, s + len); in hb_variation_to_string()
1137 while (len && s[len - 1] == ' ') in hb_variation_to_string()
1138 len--; in hb_variation_to_string()
1143 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%g", (double) variation->value)); in hb_variation_to_string()
1147 len = hb_min (len, size - 1); in hb_variation_to_string()
1217 /* If there is no visibility control, then hb-static.cc will NOT
1219 * only, so only libharfbuzz.so defines them, not other libs. */
1222 #include "hb-static.cc"