1
Graphics / Applying text outline
« on: July 18, 2022, 10:21:20 am »
I want to understand how text outline is applying, but I cant find the answer in code.
Text has m_vertices and m_outlineVertices. Text::ensureGeometryUpdate function adds glyphs to them.
My question is: how glyph without outline are centered in outlined glyph?
Its better described in an attached image:
1st letter is sf::Text, 2nd letter is my attempt to recreate it from two sf::Glyph`s.
How to make proper padding betwen regular and outlined glyphs?
Text has m_vertices and m_outlineVertices. Text::ensureGeometryUpdate function adds glyphs to them.
My question is: how glyph without outline are centered in outlined glyph?
Its better described in an attached image:
1st letter is sf::Text, 2nd letter is my attempt to recreate it from two sf::Glyph`s.
How to make proper padding betwen regular and outlined glyphs?