kzu_truetype.h File Reference

TrueType font interface. More...

Namespaces

 kanzi
 

Functions

kzsError kzuTruetypeSystemDelete (struct KzuTruetypeSystem *truetypeSystem)
 Deletes a TrueType font system. More...
 
kzsError kzuTruetypeSystemCreateFont (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kzString name, struct KzuFont **out_font)
 Creates a TrueType font using the given TrueType font system. More...
 
kzsError kzuTruetypeSystemCreateFontFromFile (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, kzString filePath, struct KzuFont **out_font)
 Creates a TrueType font from file using the given TrueType font system. More...
 
kzsError kzuTruetypeSystemCreateFontFromMemory (const struct KzcMemoryManager *memoryManager, struct KzuTruetypeSystem *truetypeSystem, const kanzi::byte *data, kzUint size, kanzi::string_view name, bool createMemoryCopy, struct KzuFont **out_font)
 Creates a TrueType font from memory using the given TrueType font system. More...
 
void kzuTruetypeSystemSetShader (struct KzuTruetypeSystem *truetypeSystem, kanzi::ShaderProgramSharedPtr shader)
 Sets shader for Truetype system. More...
 

Detailed Description

TrueType font interface.

Copyright 2008-2017 by Rightware. All rights reserved.

Function Documentation

kzsError kzuTruetypeSystemDelete ( struct KzuTruetypeSystem truetypeSystem)

Deletes a TrueType font system.

kzsError kzuTruetypeSystemCreateFont ( const struct KzcMemoryManager memoryManager,
struct KzuTruetypeSystem truetypeSystem,
kzString  name,
struct KzuFont **  out_font 
)

Creates a TrueType font using the given TrueType font system.

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

Creates a TrueType font from file using the given TrueType font system.

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

Creates a TrueType font from memory using the given TrueType font system.

void kzuTruetypeSystemSetShader ( struct KzuTruetypeSystem truetypeSystem,
kanzi::ShaderProgramSharedPtr  shader 
)

Sets shader for Truetype system.