diff --git a/devel/201_80.md b/devel/201_80.md new file mode 100644 index 0000000000..ecf48b5aab --- /dev/null +++ b/devel/201_80.md @@ -0,0 +1,6 @@ +# [201_80] 修复/ / 的乐高符号Tab循环高亮显示问题 + +## 如何测试 +1. 进入数学模式输入`/` `/`,出现斜着的平行符号,Tab一次是竖着的,两次是`//`。 +2. 观察Tab循环高亮是否正常显示。 + diff --git a/src/Texmacs/Window/tm_button.cpp b/src/Texmacs/Window/tm_button.cpp index 0c65f2f014..36fddcf393 100644 --- a/src/Texmacs/Window/tm_button.cpp +++ b/src/Texmacs/Window/tm_button.cpp @@ -251,7 +251,7 @@ box_widget (scheme_tree p, string s, color col, bool trans, bool ink) { if ((n >= 5) && is_atomic (p[4])) sz= as_int (p[4]); if ((n >= 6) && is_atomic (p[5])) dpi= as_int (p[5]); if ((n >= 7) && is_atomic (p[6])) dw= as_int (p[6]); - font fn= find_font (family, fn_class, series, shape, sz, dpi); + font fn= smart_font (family, fn_class, series, shape, sz, dpi); box b = text_box (decorate (), 0, s, fn, col); if (ink) b= resize_box (decorate (), b, b->x3, b->y3, b->x4, b->y4, true); return box_widget (b, trans, dw);