Font private members. More...
#include <kanzi/core.ui/resource/resource.hpp>
#include <kanzi/core/cpp/cstddef.hpp>
#include <kanzi/core/cpp/memory.hpp>
#include <kanzi/core/legacy/debug/kzs_error.hpp>
#include <kanzi/core/legacy/kzs_types.hpp>
#include <kanzi/core/math/color_rgba.hpp>
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< KzuFont > | kanzi::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... | |
Font private members.
Copyright 2008-2017 by Rightware. All rights reserved.
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.
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.