Crate ttf2mesh_sys

source ·

Structs

Constants

Statics

Functions

  • @brief Export ttf font to Wavefront .obj file @param ttf Pointer to font object @param file_name File name of output file @param quality Number of points to circle (see TTF_QUALITY_XXX) @return Operation result TTF_DONE, TTF_ERR_OPEN or TTF_ERR_WRITING
  • @brief Translate unicode character to glyph index in font object @param ttf Pointer to font object @param utf16_char Unicode character @return Glyph index in glyphs array or -1
  • @brief Free the font object @param ttf Pointer to font object
  • @brief Free the font list created with ttf_list_fonts() @param list font list
  • @brief Free the mesh object @param mesh Pointer to mesh object
  • @brief Free the mesh3d object @param mesh Pointer to mesh object
  • @brief Free the outline object @param outline Pointer to outline object
  • @brief Convert glyph to mesh-object @param glyph Pointer to glyph object @param output Pointer to mesh object or NULL if error occurred @param quality Number of points to circle (see TTF_QUALITY_XXX) @param features Process features and tricks (see TTF_FEATURES_DFLT, TTF_FEATURE_XXX) @return Operation result TTF_XXX
  • @brief Convert glyph to mesh3d-object @param glyph Pointer to glyph object @param output Pointer to mesh3d object or NULL if error occurred @param quality Number of points to circle (see TTF_QUALITY_XXX) @param features Process features and tricks (see TTF_FEATURES_DFLT, TTF_FEATURE_XXX) @param depth Depth of the object @return Operation result TTF_XXX
  • @brief Convert glyph to object of svg document @param glyph Pointer to glyph object @param xscale Scaling the glyph horizontally @param yscale Scaling the glyph vertically @return Null terminated string or NULL if no memory in system
  • @brief Convert glyph outline to sequence of line objects @param glyph Pointer to glyph object @param quality Number of points to circle (see TTF_QUALITY_XXX) @return Pointer to converted outline or NULL if no memory in system or if glyph have no outline
  • @brief List available fonts in directory @param directories Array of standard C strings @param dir_count Length of \a directories array @param mask Font file name pattern (can be NULL) @return Array of references to ttf_t objects or NULL if no memory
  • @brief Matching font from list @param list NULL-terminated array of references to ttf_t objects @param deflt Default font @param requirements Requirements string @return Matched font from \a list or \a deflt value if no font matched
  • @brief Same as ttf_list_match. @return Index of matched font from \a list or -1 value if no font matched
  • @brief List available system fonts @param mask Font file name pattern (can be NULL) @return Array of references to ttf_t objects or NULL if no memory
  • @brief Load a font from file @param filename TTF font file name @param output Pointer to font object or NULL if error was occurred @return Operation result TTF_XXX
  • @brief Load a font from memory @param data Data pointer @param size Data size @param output Pointer to font object or NULL if error was occurred @return Operation result TTF_XXX
  • @brief Even-odd algorithm for retriving the contour information @param outline Outline which prepared by ttf_linear_outline function @param subglyph Subglyph of interest or -1 if does not matter @param contour Contour index in outline (0…ncontours-1) @param test_point Point index in it \a contour @param nested_to The index of parent contour if not NULL @return true if contour is not a hole
  • @brief Even-odd algorithm for point @param outline Outline which prepared by ttf_linear_outline function @param point Point coordinates @param subglyph Subglyph of interest or -1 if does not matter @return true if point is on filled glyph region
  • @brief Base implementation of Even-odd algorithm @param outline Outline which prepared by ttf_linear_outline function @param point Point coordinates @param contour Contour index @param dist Distance at left of the point to a most closer point of contour, can be NULL if does not matter @return The number of intersections with the contour to the left of the point
  • @brief Convert continuous qbezier curves to their three-point variant @param glyph Pointer to glyph object @return Pointer to converted outline or NULL if no memory in system

Type Aliases