summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-12 15:02:43 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-02-17 14:01:45 -0600
commit096261a41d3739e2e34b74b216a1e203507cce68 (patch)
treeea5274610bb8aa755033efecec09d939b75bf209
parent50f14f7fc8eda225dc411be05d347c39a0e44d1e (diff)
downloadpango-096261a41d3739e2e34b74b216a1e203507cce68.tar.gz
Stop exporting some utilities
These are just for our internal use.
-rw-r--r--pango/pango-font-description.c2
-rw-r--r--pango/pango-utils-internal.h18
-rw-r--r--pango/pango-utils.h31
3 files changed, 19 insertions, 32 deletions
diff --git a/pango/pango-font-description.c b/pango/pango-font-description.c
index 90b48d26..7407cc93 100644
--- a/pango/pango-font-description.c
+++ b/pango/pango-font-description.c
@@ -23,7 +23,7 @@
#include "pango-font-description.h"
-#include "pango-utils.h"
+#include "pango-utils-internal.h"
struct _PangoFontDescription
diff --git a/pango/pango-utils-internal.h b/pango/pango-utils-internal.h
index 904dd08b..57fe0478 100644
--- a/pango/pango-utils-internal.h
+++ b/pango/pango-utils-internal.h
@@ -47,6 +47,24 @@ char *_pango_trim_string (const char *str);
PangoDirection pango_find_base_dir (const char *text,
int length);
+gboolean pango_parse_style (const char *str,
+ PangoStyle *style,
+ gboolean warn);
+gboolean pango_parse_variant (const char *str,
+ PangoVariant *variant,
+ gboolean warn);
+gboolean pango_parse_weight (const char *str,
+ PangoWeight *weight,
+ gboolean warn);
+gboolean pango_parse_stretch (const char *str,
+ PangoStretch *stretch,
+ gboolean warn);
+
+void pango_quantize_line_geometry (int *thickness,
+ int *position);
+
+
+
G_END_DECLS
#endif /* __PANGO_UTILS_H__ */
diff --git a/pango/pango-utils.h b/pango/pango-utils.h
index 36635b12..ee6800f0 100644
--- a/pango/pango-utils.h
+++ b/pango/pango-utils.h
@@ -28,37 +28,6 @@
G_BEGIN_DECLS
-/* Functions for parsing textual representations
- * of PangoFontDescription fields. They return TRUE if the input string
- * contains a valid value, which then has been assigned to the corresponding
- * field in the PangoFontDescription. If the warn parameter is TRUE,
- * a warning is printed (with g_warning) if the string does not
- * contain a valid value.
- */
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_style (const char *str,
- PangoStyle *style,
- gboolean warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_variant (const char *str,
- PangoVariant *variant,
- gboolean warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_weight (const char *str,
- PangoWeight *weight,
- gboolean warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_stretch (const char *str,
- PangoStretch *stretch,
- gboolean warn);
-
-
-/* Hint line position and thickness.
- */
-PANGO_AVAILABLE_IN_1_12
-void pango_quantize_line_geometry (int *thickness,
- int *position);
-
/* A routine from fribidi that we either wrap or provide ourselves.
*/
PANGO_AVAILABLE_IN_1_4