Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzu_text_manager.h File Reference

Text Manager. More...

Functions

kzsError kzuTextManagerCreate (const struct KzcMemoryManager *memoryManager, struct KzuResourceManager *resourceManager, struct KzuTextManager **out_textManager)
 Creates a text manager. More...
 
kzsError kzuTextManagerDelete (struct KzuTextManager *textManager)
 Deletes a text manager. More...
 
void kzuTextManagerSetGlyphCacheSize (struct KzuTextManager *textManager, kzUint glyphCacheWidth, kzUint glyphCacheHeight)
 Sets the size of the textures in glyph caches created by the text manager. More...
 
kzsError kzuTextManagerGetGlyphCache (const struct KzuTextManager *textManager, struct KzuFont *font, kzFloat fontSize, struct KzuGlyphCache **out_glyphCache)
 Retrieves the glyph cache associated with the given font and font size. More...
 

Detailed Description

Text Manager.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

kzsError kzuTextManagerCreate ( const struct KzcMemoryManager memoryManager,
struct KzuResourceManager resourceManager,
struct KzuTextManager **  out_textManager 
)

Creates a text manager.

kzsError kzuTextManagerDelete ( struct KzuTextManager textManager)

Deletes a text manager.

void kzuTextManagerSetGlyphCacheSize ( struct KzuTextManager textManager,
kzUint  glyphCacheWidth,
kzUint  glyphCacheHeight 
)

Sets the size of the textures in glyph caches created by the text manager.

kzsError kzuTextManagerGetGlyphCache ( const struct KzuTextManager textManager,
struct KzuFont font,
kzFloat  fontSize,
struct KzuGlyphCache **  out_glyphCache 
)

Retrieves the glyph cache associated with the given font and font size.