[pango/pango2: 23/68] Cosmetics: Move glyph constant definitions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 23/68] Cosmetics: Move glyph constant definitions
- Date: Tue, 14 Jun 2022 11:26:19 +0000 (UTC)
commit d346545e878f3c37efe6d6aee156cf85a31ae77c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 11 10:42:20 2022 -0400
Cosmetics: Move glyph constant definitions
Move these definitions to pango-glyph.h, where
they belong.
pango/pango-font.h | 43 -------------------------------------------
pango/pango-glyph.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 43 deletions(-)
---
diff --git a/pango/pango-font.h b/pango/pango-font.h
index 813b18118..8de3126d0 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -75,47 +75,4 @@ PangoFont * pango_font_deserialize (PangoContext *context,
GBytes *bytes,
GError **error);
-/**
- * PANGO_GLYPH_EMPTY:
- *
- * A `PangoGlyph` value that indicates a zero-width empty glpyh.
- *
- * This is useful for example in shaper modules, to use as the glyph for
- * various zero-width Unicode characters (those passing [func@is_zero_width]).
- */
-
-/**
- * PANGO_GLYPH_INVALID_INPUT:
- *
- * A `PangoGlyph` value for invalid input.
- *
- * `PangoLayout` produces one such glyph per invalid input UTF-8 byte and such
- * a glyph is rendered as a crossed box.
- *
- * Note that this value is defined such that it has the %PANGO_GLYPH_UNKNOWN_FLAG
- * set.
- */
-/**
- * PANGO_GLYPH_UNKNOWN_FLAG:
- *
- * Flag used in `PangoGlyph` to turn a `gunichar` value of a valid Unicode
- * character into an unknown-character glyph for that `gunichar`.
- *
- * Such unknown-character glyphs may be rendered as a 'hex box'.
- */
-/**
- * PANGO_GET_UNKNOWN_GLYPH:
- * @wc: a Unicode character
- *
- * The way this unknown glyphs are rendered is backend specific. For example,
- * a box with the hexadecimal Unicode code-point of the character written in it
- * is what is done in the most common backends.
- *
- * Returns: a `PangoGlyph` value that means no glyph was found for @wc.
- */
-#define PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF)
-#define PANGO_GLYPH_INVALID_INPUT ((PangoGlyph)0xFFFFFFFF)
-#define PANGO_GLYPH_UNKNOWN_FLAG ((PangoGlyph)0x10000000)
-#define PANGO_GET_UNKNOWN_GLYPH(wc) ((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG)
-
G_END_DECLS
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h
index 0b73742e9..0507b6135 100644
--- a/pango/pango-glyph.h
+++ b/pango/pango-glyph.h
@@ -245,5 +245,50 @@ void pango_shape_item (PangoItem *item,
PangoGlyphString *glyphs,
PangoShapeFlags flags);
+/**
+ * PANGO_GLYPH_EMPTY:
+ *
+ * A `PangoGlyph` value that indicates a zero-width empty glpyh.
+ *
+ * This is useful for example in shaper modules, to use as the glyph for
+ * various zero-width Unicode characters (those passing [func@is_zero_width]).
+ */
+#define PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF)
+
+/**
+ * PANGO_GLYPH_INVALID_INPUT:
+ *
+ * A `PangoGlyph` value for invalid input.
+ *
+ * `PangoLayout` produces one such glyph per invalid input UTF-8 byte and such
+ * a glyph is rendered as a crossed box.
+ *
+ * Note that this value is defined such that it has the %PANGO_GLYPH_UNKNOWN_FLAG
+ * set.
+ */
+#define PANGO_GLYPH_INVALID_INPUT ((PangoGlyph)0xFFFFFFFF)
+
+/**
+ * PANGO_GLYPH_UNKNOWN_FLAG:
+ *
+ * Flag used in `PangoGlyph` to turn a `gunichar` value of a valid Unicode
+ * character into an unknown-character glyph for that `gunichar`.
+ *
+ * Such unknown-character glyphs may be rendered as a 'hex box'.
+ */
+#define PANGO_GLYPH_UNKNOWN_FLAG ((PangoGlyph)0x10000000)
+
+/**
+ * PANGO_GET_UNKNOWN_GLYPH:
+ * @wc: a Unicode character
+ *
+ * The way this unknown glyphs are rendered is backend specific. For example,
+ * a box with the hexadecimal Unicode code-point of the character written in it
+ * is what is done in the most common backends.
+ *
+ * Returns: a `PangoGlyph` value that means no glyph was found for @wc.
+ */
+#define PANGO_GET_UNKNOWN_GLYPH(wc) ((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG)
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]