File diff r23069:dad0616931e5 → r23070:29aad54958e4
src/os/windows/string_uniscribe.cpp
Show inline comments
 
@@ -192,12 +192,13 @@ static bool UniscribeShapeRun(const Unis
 
				for (size_t g_id = 0; g_id < range.glyphs.size(); g_id++) {
 
					range.ft_glyphs[g_id] = range.glyphs[g_id];
 
				}
 
				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.
 
					}
 
				}
 

	
 
				/* FreeType and GDI/Uniscribe seems to occasionally disagree over the width of a glyph. */
 
				range.total_advance = 0;
 
				for (size_t i = 0; i < range.advances.size(); i++) {