From 6122f7c4c570449f47987fdc6177f72d4f57b626 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Fri, 1 Nov 2024 14:24:46 +0800 Subject: [PATCH] wip wip wip --- src/Graphics/Fonts/smart_font.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Graphics/Fonts/smart_font.cpp b/src/Graphics/Fonts/smart_font.cpp index e5b1df412..55d33ab92 100644 --- a/src/Graphics/Fonts/smart_font.cpp +++ b/src/Graphics/Fonts/smart_font.cpp @@ -808,7 +808,11 @@ smart_font_rep::advance (string s, int& pos, string& r, int& nr) { if (nr < 0) return; if (N (fn) <= nr || is_nil (fn[nr])) initialize_font (nr); if (sm->fn_rewr[nr] != REWRITE_NONE) r= rewrite (r, sm->fn_rewr[nr]); + if (s_N == 1 && is_locase (s[0]) && math_kind == 0 && is_math_family(mfam)) { + r= "<#" * to_Hex (0x1d44e + (int) (s[0] - 'a')) * ">"; + } if (DEBUG_VERBOSE) { + debug_fonts << "Advance for font of [" << s << "] " << this->res_name << " math_kind: " << math_kind << LF; debug_fonts << "Physical font of [" << r << "]" << "[" << herk_to_utf8 (r) << "][" << cork_to_utf8 (r) << "]" << " is " << fn[nr]->res_name << LF; @@ -856,7 +860,7 @@ is_wanted (string c, string family, array rules, array given) { int smart_font_rep::resolve (string c, string fam, int attempt) { if (DEBUG_VERBOSE) { - debug_fonts << "Resolve " << c << " in fam " << fam << " mfam " << mfam + debug_fonts << "Resolve " << c << " in math_kind " << math_kind << " in fam " << fam << " mfam " << mfam << ", attempt " << attempt << LF; } array a= trimmed_tokenize (fam, "=");