[PATCH] dwrite: Adjust comment regarding digits substitution during shaping.
Nikolay Sivov
nsivov at codeweavers.com
Mon Feb 8 08:33:13 CST 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
Testing with Arabic font with a glyph for 0x660 removed gives notdef (0) for '0',
when used with Arabic substitution locale.
dlls/dwrite/opentype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 2f254607653..7dc4a1f7b55 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -5929,7 +5929,7 @@ static void opentype_get_nominal_glyphs(struct scriptshaping_context *context, c
context->glyph_infos[i].mask |= rtlm_mask;
}
- /* TODO: should this check for glyph availability? */
+ /* Glyph availability is not tested for a replacement digit. */
if (*context->u.subst.digits && codepoint >= '0' && codepoint <= '9')
codepoint = context->u.subst.digits[codepoint - '0'];
--
2.30.0
More information about the wine-devel
mailing list