CL_GlyphBuffer::get_font_for - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_GlyphBuffer::get_font_for

Returns an iterator to the font_marker associated with a particular glyph.

    	std::map<int, CL_Font>::iterator get_font_for(
    		int glyph_index);

    	std::map<int, CL_Font>::const_iterator get_font_for(
    		int glyph_index);

Detailed description:

If a negative index is supplied, assumes glyph 0. If an index past the last element is supplied, assumes the last element. If there are no CL_Fonts in the GlyphBuffer, or if there is no CL_Font associated with that glyph, returns the end iterator.

See also:

CL_GlyphBuffer | CL_Font

Questions or comments, write to the ClanLib mailing list.