create: Checkpoint 2026-11-24 13:16:55 UTC [e3747e714e]
MemRelay-Operation: checkpoint-save:ui-font-garbled-and-bundled-fonts-2026-11-24 MemRelay-Resource: 25cbd61c-f7bc-4a1a-aee0-527295e90795
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: Checkpoint 2026-11-24 13:16:55 UTC [e3747e714e]
|
||||||
|
type: checkpoint
|
||||||
|
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-24-13-16-55-utc-e3747e714e
|
||||||
|
stable_id: 25cbd61c-f7bc-4a1a-aee0-527295e90795
|
||||||
|
scope: project
|
||||||
|
memory_type: checkpoint
|
||||||
|
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: ui-font-garbled-and-bundled-fonts-2026-11-24
|
||||||
|
created_at: '2026-11-24T13:16:55.556779+00:00'
|
||||||
|
updated_at: '2026-11-24T13:16:55.556779+00:00'
|
||||||
|
tags:
|
||||||
|
- fluid-plus
|
||||||
|
- font
|
||||||
|
---
|
||||||
|
|
||||||
|
界面字体名称乱码已修:设置里那一格用 copy_label 存“Automatic”,翻译表只记下这块内存的地址。Fl_Widget::label() 换成译文时会释放 copy_label 的缓冲区,之后再套用一次语言就画出已释放的内存,所以只有这一格乱码。g_widget_english / g_widget_tooltip 改成自己保存 std::string。
|
||||||
|
|
||||||
|
系统字体一直在扫。选择框就是 Fl::set_fonts 的结果。现在改成 set_fonts("*"),中文等非拉丁字体不再被 Windows 跳过。
|
||||||
|
|
||||||
|
自带字体在 fluid-plus/fonts,启动时按平台私有方式加载(Windows 是 AddFontResourceExW FR_PRIVATE),再和系统字体一起列出来。已放入 JetBrains Mono、Fira Code、Source Code Pro、Cascadia Code 的 Regular 与 Bold,都是 SIL OFL 1.1。还可以往这个目录放 .ttf/.otf/.ttc。构建后会复制到 exe 旁的 fonts。
|
||||||
|
|
||||||
|
验证:Release fluid-plus 编译链接成功。单独小程序确认这四个家族能被私有注册并枚举、CreateFont 得到的就是这些名字。没有用鼠标打开设置框再看一眼。未提交。要重新打开 fluid-plus.exe 才能看到。
|
||||||
Reference in New Issue
Block a user