ubuntu - ubuntu 16.10 中的 Monospace 10px 大小无效

标签 ubuntu freetype monospace fontconfig

Problem in screenshot

为什么?怎么修? 16.10 中的 10px 太小(“p” - 10px),但 11px 太大(“p” - 12px) 在 14.04 中正常字体大小 ("p"- 11px)

DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

最佳答案

嗯...我在 ubuntu freetype 2.5.2 中找到了这条路径并且错误已修复!

样本:https://bugs.freedesktop.org/attachment.cgi?id=129090

# Description: revert commit which creates regressions in gtk
# Ubuntu: https://bugs.launchpad.net/freetype/+bug/972223
# Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636776
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -246,10 +246,7 @@
     FT_Request_Metrics( size->face, req );

     if ( FT_IS_SCALABLE( size->face ) )
-    {
       error = tt_size_reset( ttsize );
-      ttsize->root.metrics = ttsize->metrics;
-    }

     return error;
   }

关于ubuntu - ubuntu 16.10 中的 Monospace 10px 大小无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41781713/

相关文章:

c - 使用 Pango 将文本呈现为使用 FreeType 字体的图像的简单示例是什么?

c++ - 我在这个 C++ FreeType GLFW 应用程序的编译/链接阶段缺少什么?

html - 如何在保留字符宽度的 HTML 中使用等宽字体显示特殊的 unicode 字符

github - Github Flavored Markdown 中不带语法高亮的等宽字体

html - IE8 中的 Monospace 字体忽略空格

regex - 重命名命令 Debian 服务器

python-3.x - Jupyter 内核在 Ubuntu 上死机

java - libgdx-freetype 如何以正确的字母间距缩放字体?

perl - 无法使用 perl 创建文件(权限被拒绝)

mongodb - 在 Ubuntu 20.04 上升级 MongoDB 版本