summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h')
-rw-r--r--Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h102
1 files changed, 8 insertions, 94 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h b/Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h
index 6b77bd3d2a9..26b32ed6be9 100644
--- a/Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h
+++ b/Build/source/libs/freetype2/freetype-src/include/freetype/ftglyph.h
@@ -4,7 +4,7 @@
*
* FreeType convenience functions to handle glyphs (specification).
*
- * Copyright (C) 1996-2022 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -126,7 +126,7 @@ FT_BEGIN_HEADER
*
* @description:
* A handle to an object used to model a bitmap glyph image. This is a
- * 'sub-class' of @FT_Glyph, and a pointer to @FT_BitmapGlyphRec.
+ * sub-class of @FT_Glyph, and a pointer to @FT_BitmapGlyphRec.
*/
typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph;
@@ -142,7 +142,7 @@ FT_BEGIN_HEADER
*
* @fields:
* root ::
- * The root fields of @FT_Glyph.
+ * The root @FT_Glyph fields.
*
* left ::
* The left-side bearing, i.e., the horizontal distance from the
@@ -181,7 +181,7 @@ FT_BEGIN_HEADER
*
* @description:
* A handle to an object used to model an outline glyph image. This is a
- * 'sub-class' of @FT_Glyph, and a pointer to @FT_OutlineGlyphRec.
+ * sub-class of @FT_Glyph, and a pointer to @FT_OutlineGlyphRec.
*/
typedef struct FT_OutlineGlyphRec_* FT_OutlineGlyph;
@@ -224,92 +224,6 @@ FT_BEGIN_HEADER
/**************************************************************************
*
- * @type:
- * FT_SvgGlyph
- *
- * @description:
- * A handle to an object used to model an SVG glyph. This is a
- * 'sub-class' of @FT_Glyph, and a pointer to @FT_SvgGlyphRec.
- *
- * @since:
- * 2.12
- */
- typedef struct FT_SvgGlyphRec_* FT_SvgGlyph;
-
-
- /**************************************************************************
- *
- * @struct:
- * FT_SvgGlyphRec
- *
- * @description:
- * A structure used for OT-SVG glyphs. This is a 'sub-class' of
- * @FT_GlyphRec.
- *
- * @fields:
- * root ::
- * The root @FT_GlyphRec fields.
- *
- * svg_document ::
- * A pointer to the SVG document.
- *
- * svg_document_length ::
- * The length of `svg_document`.
- *
- * glyph_index ::
- * The index of the glyph to be rendered.
- *
- * metrics ::
- * A metrics object storing the size information.
- *
- * units_per_EM ::
- * The size of the EM square.
- *
- * start_glyph_id ::
- * The first glyph ID in the glyph range covered by this document.
- *
- * end_glyph_id ::
- * The last glyph ID in the glyph range covered by this document.
- *
- * transform ::
- * A 2x2 transformation matrix to apply to the glyph while rendering
- * it.
- *
- * delta ::
- * Translation to apply to the glyph while rendering.
- *
- * @note:
- * The Glyph Management API requires @FT_Glyph or its 'sub-class' to have
- * all the information needed to completely define the glyph's rendering.
- * Outline-based glyphs can directly apply transformations to the outline
- * but this is not possible for an SVG document that hasn't been parsed.
- * Therefore, the transformation is stored along with the document. In
- * the absence of a 'ViewBox' or 'Width'/'Height' attribute, the size of
- * the ViewPort should be assumed to be 'units_per_EM'.
- */
- typedef struct FT_SvgGlyphRec_
- {
- FT_GlyphRec root;
-
- FT_Byte* svg_document;
- FT_ULong svg_document_length;
-
- FT_UInt glyph_index;
-
- FT_Size_Metrics metrics;
- FT_UShort units_per_EM;
-
- FT_UShort start_glyph_id;
- FT_UShort end_glyph_id;
-
- FT_Matrix transform;
- FT_Vector delta;
-
- } FT_SvgGlyphRec;
-
-
- /**************************************************************************
- *
* @function:
* FT_New_Glyph
*
@@ -584,9 +498,9 @@ FT_BEGIN_HEADER
* The glyph image is translated with the `origin` vector before
* rendering.
*
- * The first parameter is a pointer to an @FT_Glyph handle that will be
+ * The first parameter is a pointer to an @FT_Glyph handle, that will be
* _replaced_ by this function (with newly allocated data). Typically,
- * you would do something like the following (omitting error handling).
+ * you would use (omitting error handling):
*
* ```
* FT_Glyph glyph;
@@ -603,7 +517,7 @@ FT_BEGIN_HEADER
* if ( glyph->format != FT_GLYPH_FORMAT_BITMAP )
* {
* error = FT_Glyph_To_Bitmap( &glyph, FT_RENDER_MODE_NORMAL,
- * 0, 1 );
+ * 0, 1 );
* if ( error ) // `glyph' unchanged
* ...
* }
@@ -618,7 +532,7 @@ FT_BEGIN_HEADER
* FT_Done_Glyph( glyph );
* ```
*
- * Here is another example, again without error handling.
+ * Here is another example, again without error handling:
*
* ```
* FT_Glyph glyphs[MAX_GLYPHS]