File indexing completed on 2025-12-18 10:28:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef __PANGO_UTILS_H__
0023 #define __PANGO_UTILS_H__
0024
0025 #include <stdio.h>
0026 #include <glib.h>
0027 #include <pango/pango-font.h>
0028
0029 G_BEGIN_DECLS
0030
0031 PANGO_DEPRECATED
0032 char ** pango_split_file_list (const char *str);
0033
0034 PANGO_DEPRECATED
0035 char *pango_trim_string (const char *str);
0036 PANGO_DEPRECATED
0037 gint pango_read_line (FILE *stream,
0038 GString *str);
0039 PANGO_DEPRECATED
0040 gboolean pango_skip_space (const char **pos);
0041 PANGO_DEPRECATED
0042 gboolean pango_scan_word (const char **pos,
0043 GString *out);
0044 PANGO_DEPRECATED
0045 gboolean pango_scan_string (const char **pos,
0046 GString *out);
0047 PANGO_DEPRECATED
0048 gboolean pango_scan_int (const char **pos,
0049 int *out);
0050
0051 PANGO_DEPRECATED
0052 gboolean pango_parse_enum (GType type,
0053 const char *str,
0054 int *value,
0055 gboolean warn,
0056 char **possible_values);
0057
0058
0059
0060
0061
0062
0063
0064
0065 PANGO_AVAILABLE_IN_ALL
0066 gboolean pango_parse_style (const char *str,
0067 PangoStyle *style,
0068 gboolean warn);
0069 PANGO_AVAILABLE_IN_ALL
0070 gboolean pango_parse_variant (const char *str,
0071 PangoVariant *variant,
0072 gboolean warn);
0073 PANGO_AVAILABLE_IN_ALL
0074 gboolean pango_parse_weight (const char *str,
0075 PangoWeight *weight,
0076 gboolean warn);
0077 PANGO_AVAILABLE_IN_ALL
0078 gboolean pango_parse_stretch (const char *str,
0079 PangoStretch *stretch,
0080 gboolean warn);
0081
0082
0083
0084
0085 PANGO_AVAILABLE_IN_1_12
0086 void pango_quantize_line_geometry (int *thickness,
0087 int *position);
0088
0089
0090
0091 PANGO_AVAILABLE_IN_1_4
0092 guint8 * pango_log2vis_get_embedding_levels (const gchar *text,
0093 int length,
0094 PangoDirection *pbase_dir);
0095
0096
0097
0098
0099 PANGO_AVAILABLE_IN_1_10
0100 gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST;
0101
0102 PANGO_AVAILABLE_IN_ALL
0103 void pango_find_paragraph_boundary (const char *text,
0104 int length,
0105 int *paragraph_delimiter_index,
0106 int *next_paragraph_start);
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121 #define PANGO_VERSION_ENCODE(major, minor, micro) ( \
0122 ((major) * 10000) \
0123 + ((minor) * 100) \
0124 + ((micro) * 1))
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150
0151
0152 #define PANGO_VERSION PANGO_VERSION_ENCODE( \
0153 PANGO_VERSION_MAJOR, \
0154 PANGO_VERSION_MINOR, \
0155 PANGO_VERSION_MICRO)
0156
0157
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167 #define PANGO_VERSION_CHECK(major,minor,micro) \
0168 (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro))
0169
0170
0171
0172 PANGO_AVAILABLE_IN_1_16
0173 int pango_version (void) G_GNUC_CONST;
0174
0175
0176 PANGO_AVAILABLE_IN_1_16
0177 const char * pango_version_string (void) G_GNUC_CONST;
0178
0179
0180 PANGO_AVAILABLE_IN_1_16
0181 const char * pango_version_check (int required_major,
0182 int required_minor,
0183 int required_micro) G_GNUC_CONST;
0184
0185 G_END_DECLS
0186
0187 #endif