Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions devel/212_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 212_3 修复非emoji的unicode符号导出失败的问题

## 如何测试
打开`TeXmacs/tests/tmu/206_19.tmu`这个文档,导出pdf和文档一致而不是 ☒。

## 2026/02/24
### What
修复非emoji的unicode符号(如 ♤♡♢♧ ♠♥♦♣)导出pdf时变为 ☒

### Why
普通文本字体(比如 NotoSerif)里的符号被误套 emoji 处理而导出异常。
4 changes: 2 additions & 2 deletions src/Plugins/Freetype/tt_face.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tt_font_metric_rep::get (int i) {
SI ll = tt_si (slot->metrics.horiAdvance);
(void) xw;

bool is_emoji= is_emoji_character (i);
bool is_emoji= !is_nil (face->cbdt_table) && is_emoji_character (i);
if (is_emoji) {

// For PNG fonts (CBDT), apply scaling factor to make them scalable
Expand Down Expand Up @@ -332,7 +332,7 @@ tt_font_glyphs_rep::get (int i) {
}

// Handle emoji characters
bool is_emoji= is_emoji_character (i);
bool is_emoji= !is_nil (face->cbdt_table) && is_emoji_character (i);
if (is_emoji) {
SI ll= tt_si (slot->metrics.horiAdvance);

Expand Down