rename Font::operator[]() to Font::get_glyph()
This commit is contained in:
parent
d7f7dbdc28
commit
5403d13f6a
@ -45,7 +45,7 @@ namespace jes
|
|||||||
int get_line_height() { return m_line_height; }
|
int get_line_height() { return m_line_height; }
|
||||||
int get_advance() { return m_advance; }
|
int get_advance() { return m_advance; }
|
||||||
int get_baseline_offset() { return m_baseline_offset; }
|
int get_baseline_offset() { return m_baseline_offset; }
|
||||||
GlyphRef operator[](FT_ULong char_code)
|
GlyphRef get_glyph(FT_ULong char_code)
|
||||||
{
|
{
|
||||||
auto it = m_glyphs.find(char_code);
|
auto it = m_glyphs.find(char_code);
|
||||||
if (it != m_glyphs.end())
|
if (it != m_glyphs.end())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user