summaryrefslogtreecommitdiff
path: root/source/fitz/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/font.c')
-rw-r--r--source/fitz/font.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/font.c b/source/fitz/font.c
index badc7028..2e5630bd 100644
--- a/source/fitz/font.c
+++ b/source/fitz/font.c
@@ -1648,21 +1648,21 @@ fz_encode_character_with_fallback(fz_context *ctx, fz_font *user_font, int unico
#ifndef TOFU_CJK_LANG
if (script == UCDN_SCRIPT_HAN)
{
- font = fz_load_fallback_font(ctx, script, FZ_LANG_ja, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
+ font = fz_load_fallback_font(ctx, script, FZ_LANG_zh_Hant, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
if (font)
{
gid = fz_encode_character(ctx, font, unicode);
if (gid > 0)
return *out_font = font, gid;
}
- font = fz_load_fallback_font(ctx, script, FZ_LANG_ko, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
+ font = fz_load_fallback_font(ctx, script, FZ_LANG_ja, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
if (font)
{
gid = fz_encode_character(ctx, font, unicode);
if (gid > 0)
return *out_font = font, gid;
}
- font = fz_load_fallback_font(ctx, script, FZ_LANG_zh_Hant, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
+ font = fz_load_fallback_font(ctx, script, FZ_LANG_ko, user_font->flags.is_serif, user_font->flags.is_bold, user_font->flags.is_italic);
if (font)
{
gid = fz_encode_character(ctx, font, unicode);