kzu_font_base.h File Reference

Font private members. More...

Classes

struct  KzuTruetypeSystem
 Font system base for truetype font implementations. More...
 
struct  KzuFontClass
 Defines functions for different font implementations. More...
 
struct  KzuFont
 Font structure for rendering text. More...
 

Namespaces

 kanzi
 

Typedefs

typedef shared_ptr< KzuFontkanzi::FontSharedPtr
 
typedef kzsError(* KzuTruetypeSystemDeletor) (struct KzuTruetypeSystem *truetypeSystem)
 Function definition for deleting TrueType font system. More...
 
typedef kzsError(* KzuTruetypeFontCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kanzi::string_view name, struct KzuFont **out_font)
 Function definition for creating TrueType fonts. More...
 
typedef kzsError(* KzuTruetypeFontFileCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kzString filePath, struct KzuFont **out_font)
 Function definition for creating TrueType fonts from file. More...
 
typedef kzsError(* KzuTruetypeFontMemoryCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, const kanzi::byte *data, kzUint size, kanzi::string_view name, bool createCopy, struct KzuFont **out_font)
 Function definition for creating TrueType fonts from memory. More...
 

Functions

kzsError kzuTruetypeSystemInitialize_protected (struct KzuTruetypeSystem *truetypeSystem, kanzi::Domain *domain, KzuTruetypeSystemDeletor systemDeletor, KzuTruetypeFontCreator fontCreator, KzuTruetypeFontFileCreator fontFileCreator, KzuTruetypeFontMemoryCreator fontMemoryCreator)
 Initializes the base of a TrueType font system. More...
 
kzsError kzuFontCreate_protected (const struct KzuFontClass *fontClass, kanzi::Domain *domain, struct KzuFont *font)
 Creates a font. More...
 

Detailed Description

Font private members.

Copyright 2008-2017 by Rightware. All rights reserved.

Typedef Documentation

typedef kzsError(* KzuTruetypeSystemDeletor) (struct KzuTruetypeSystem *truetypeSystem)

Function definition for deleting TrueType font system.

typedef kzsError(* KzuTruetypeFontCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kanzi::string_view name, struct KzuFont **out_font)

Function definition for creating TrueType fonts.

typedef kzsError(* KzuTruetypeFontFileCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kzString filePath, struct KzuFont **out_font)

Function definition for creating TrueType fonts from file.

typedef kzsError(* KzuTruetypeFontMemoryCreator) (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, const kanzi::byte *data, kzUint size, kanzi::string_view name, bool createCopy, struct KzuFont **out_font)

Function definition for creating TrueType fonts from memory.

Function Documentation

kzsError kzuTruetypeSystemInitialize_protected ( struct KzuTruetypeSystem truetypeSystem,
kanzi::Domain domain,
KzuTruetypeSystemDeletor  systemDeletor,
KzuTruetypeFontCreator  fontCreator,
KzuTruetypeFontFileCreator  fontFileCreator,
KzuTruetypeFontMemoryCreator  fontMemoryCreator 
)

Initializes the base of a TrueType font system.

kzsError kzuFontCreate_protected ( const struct KzuFontClass fontClass,
kanzi::Domain domain,
struct KzuFont font 
)

Creates a font.