Unified Typesetting API M1-20040817

de.inghuimische.uta.typeset
Interface GlyphFactory

All Known Implementing Classes:
SimpleGlyphFactory

public interface GlyphFactory

A factory used to retrieve glyphs. Should be implemented to cache and recycle glyphs.

Author:
Christian Ziesemer

Method Summary
 Glyph getGlyph(int c, Map attributes)
          Returns a glyph for the given character.
 

Method Detail

getGlyph

public Glyph getGlyph(int c,
                      Map attributes)
Returns a glyph for the given character. The factory has to take care to fill the glyph with the attributes and the character provided. The glyph index must not set by the factory, this is done by the script.

Parameters:
c - The character a glyph is searched for.
attributes - The attributes of the character.
Returns:
A glyph with the character and attributes set.

Unified Typesetting API M1-20040817


An inghuimische.de project.
Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details.