问题标签 [fontforge]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
143 浏览

compiler-errors - 从源代码“制作”fontforge 时出错

我使用 cygwin 编译 fontforge。我能够配置它,但是当我尝试“制作”时,我收到了这个讨厌的错误消息:

有谁知道解决方案是什么?

0 投票
1 回答
295 浏览

python - 使用没有 ffpython.exe 的 fontforge 模块

我发现在我的一个构建中有一个文件 ffpython.exe,它使用我寻找的模块运行 python:fontforge。我的问题是如何使它像其他模块一样永久化。我的意思是,只要我打开我的常规 python 解释,该模块将像其他模块一样安装,而不使用 ffpython.exe。谢谢

0 投票
1 回答
1033 浏览

scripting - 是否可以删除/编辑 fontforge 中的元数据

我有这样的东西正在转换字体

打印此元数据

我想删除或更改

0 投票
1 回答
958 浏览

homebrew - brew install fontforge 错误优胜美地

我在 OS X Yosemite 上,正在尝试通过 brew 安装 fontforge。当我尝试安装它时,我收到以下错误。我想使用 fontforge 来尝试 fontcustom 和 grunt-webfont。这个错误是什么意思?我需要先安装其他东西吗?

0 投票
2 回答
7881 浏览

fontforge - 将字形添加到 Fontforge

当我打开 Fontforge 来创建新字体时,它只列出了一组有限的字符/字形。在我创建的字体中,我需要一些默认设置中缺少的字形,例如“单右角引号”(U+203A)和“单左角引号”(U+2039)。

如何为这些字形添加“插槽”,或者更确切地说:

添加 Unicode 表中定义的字形的正确方法是什么?

0 投票
1 回答
1409 浏览

linux - 添加 FontForge 后位图字形不显示

我找到了这个字体Dina TTF,它最初是 Windows 的 *.fon 文件。这个版本是 TrueType,只有三个位图罢工:11、12 和 13。在 Netbeans 中就像一个魅力。

然而,我完全错过了一个字形,一个左箭头:U+2190。我在 FontForge 中添加了它,但是当我生成 TTF 时,将它移动到~/.local/share/fonts/TTF并通过新字母更新我的字体缓存fc-cache -vf ~/.local/share/fonts/TTF没有显示。FontForge 在新字形周围绘制绿色边框,背景被划掉,与A未划掉或框起来的字母相对。

0 投票
1 回答
310 浏览

php - 修复 FONTFORGE 开放式字体验证错误/TCPDF

在为 PHP 与 TCPDF 一起使用准备自定义 OTF 字体和 AFM 文件(Postscript 类型 1 资源)时遇到问题。

PHP 以编程方式不打印插槽 fontfontge 有验证错误,所以我认为我的任务是用 fontforge 修复字体,但我不知道如何诚实。

使用fontforge打开源字体会给我以下验证错误:

你们能帮我解决这个问题,让这些字符对我的 PHP 脚本“可见”吗?

谢谢

0 投票
2 回答
1595 浏览

linux - Import glyphs from another font with fontforge

Hi I'm using Inconsolata for powerline font in linux (link 1). Now I want to had some extra symbols. I've successfully added the awesome font symbols from the Inconsolata patched fonts in link 2 to my own copy of Inconsolata for powerline font (i.e. I can successfully copy glyphs to my font and they appear on the terminal).

However when I try to add icons from other fonts, namely the battery icons from Typicons (see link 3) they simply do not appear in the terminal. I've scaled and changed multiple properties but it's always the same.

I'm doing fc-cache -fv and I've checked that if I manually create a glyph it appears after an fc-cache. I'm completely lost here, I'm sure it must be something simple but I've already lost a lot of hours with this and the glyphs never appear in the terminal no matter what I do :-(

0 投票
1 回答
4116 浏览

fonts - XSL-FO:如何添加“helvetica neue”字体并输出到 pdf

我是否正确,在使用 XSL-FO (Apache FOP) 生成 pdf 时无法使用 windows 7 c:\windows\fonts* 中的字体?

我刚刚安装了 OTF 格式的“helvetica neue”字体。

根据 https://xmlgraphics.apache.org/fop/trunk/fonts.html

“对系统字体的支持依赖于 Java AWT 子系统获取字体度量信息。通过操作系统注册,AWT 子系统知道系统上有哪些字体可用,以及每种字体的字体度量。

当使用支持系统字体的渲染器(见上表)并且您缺少字体时,您可以将它安装在您的操作系统中,并且它应该可用于这些渲染器。请注意,这不适用于仅支持自定义字体的输出格式,例如 PDF 或 PostScript。”

如果我的理解是正确的,就是说如果我的渲染是 PDF(意思是输出是 pdf??),那么我无法通过 AWT/OS 访问字体,因此,我将无法生成这样的文本PDF中的字体使用windows 7字体?

------------------------------更新,这仅适用于ttf字体,不适用于otf。不知道如何让 otf 字体工作。

-----------------------------------------更新:20150402:

使用 FOP 1.1:

我从以下网址下载了这个特殊的免费 helvetica neue 字体: http ://www.ephifonts.com/free-helvetica-font-helvetica-neue.html

我将 fop 配置为使用 fop.xconf,但处理 ttf 文件时出错,我不知道如何使用 fontforge 编辑字体 ttf 文件:

fop -c fop.xconf -xml xml.xml -xsl coversheet.xsl -pdf output.pdf

谢谢

0 投票
1 回答
1994 浏览

python - ImportError:“psMat”不是内置模块

我正在尝试构建gregorio的字体,这涉及使用 fontforge 绑定运行 Python 脚本。该脚本是为 python2 编写的,但我一直无法找到 python2 fontforge 绑定(我正在运行 Arch Linux)。当我用 python3 运行它时,它给出了

这是我以前从未见过的,我无法弄清楚这意味着什么。(这与

在python2下运行时,我知道这意味着它找不到模块(正如预期的那样:fontforge包只安装在/usr/lib/python3.4/site-packages/.)

具体来说,脚本试图

但只能加载第一个,无论哪个首先列出。

我发现的唯一似乎远程相关的是这个 stackoverflow 问题,但据我所知,fontforge.so 和 psMat.so 是为 python3 正确构建的,正如能够加载至少一个他们。