代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/fontconfig 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From aae5ff1f2e1be978272c41bf809d15b6e47b1e2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= <drott@chromium.org>
Date: Tue, 12 Nov 2024 17:02:04 +0200
Subject: [PATCH] Remove redundant leaf assignment in fcfreetype.c
Fixes #428
---
src/fcfreetype.c | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 50f382fc..be41ea19 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -2619,15 +2619,12 @@ FcFreeTypeCharSet (FT_Face face, FcBlanks *blanks FC_UNUSED)
#endif
for (o = 0; o < NUM_DECODE; o++)
{
- FcChar32 page, off, ucs4;
- FcCharLeaf *leaf;
+ FcChar32 ucs4;
FT_UInt glyph;
if (FT_Select_Charmap (face, fcFontEncodings[o]) != 0)
continue;
- page = ~0;
- leaf = NULL;
ucs4 = FT_Get_First_Char (face, &glyph);
while (glyph != 0)
{
@@ -2643,19 +2640,8 @@ FcFreeTypeCharSet (FT_Face face, FcBlanks *blanks FC_UNUSED)
good = FcFalse;
}
- if (good)
- {
- FcCharSetAddChar (fcs, ucs4);
- if ((ucs4 >> 8) != page)
- {
- page = (ucs4 >> 8);
- leaf = FcCharSetFindLeafCreate (fcs, ucs4);
- if (!leaf)
- goto bail;
- }
- off = ucs4 & 0xff;
- leaf->map[off >> 5] |= (1U << (off & 0x1f));
- }
+ if (good)
+ FcCharSetAddChar (fcs, ucs4);
ucs4 = FT_Get_Next_Char (face, ucs4, &glyph);
}
--
GitLab
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。