Changeset - r23070:29aad54958e4
[Not reviewed]
master
0 1 0
Michael Lutz - 6 years ago 2018-11-25 15:21:30
michi@icosahedron.de
Fix: [Win32] Align sprite glyphs to the font baseline when using Uniscribe text layout.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/os/windows/string_uniscribe.cpp
Show inline comments
 
@@ -195,6 +195,7 @@ static bool UniscribeShapeRun(const Unis
 
				for (int i = 0; i < range.len; i++) {
 
					if (buff[range.pos + i] >= SCC_SPRITE_START && buff[range.pos + i] <= SCC_SPRITE_END) {
 
						range.ft_glyphs[range.char_to_glyph[i]] = range.font->fc->MapCharToGlyph(buff[range.pos + i]);
 
						range.offsets[range.char_to_glyph[i]].dv = range.font->fc->GetAscender() - range.font->fc->GetGlyph(range.ft_glyphs[range.char_to_glyph[i]])->height - 1; // Align sprite glyphs to font baseline.
 
					}
 
				}
 

	
0 comments (0 inline, 0 general)