问题描述
我需要从reportlab创建多语种发票。我认为使用UTF 8字符串可能是
,但字体存在问题。我
找不到任何可以同时执行latin1,latin2,arabic,
中文和其他语言的免费TTF字体。是否有单一字体
能够处理这些语言? (对于EN,FR,DE,HU,SK,CZ,RO,我们的大部分发票都是
,但其中一些需要使用中文。)
谢谢,
Laszlo
I need to create multi lingual invoices from reportlab. I think it is
possible to use UTF 8 strings but there is a problem with the font. I
could not find any free TTF font that can do latin1, latin2, arabic,
chinese and other languages at the same time. Is there a single font
that is able to handle these languages? (Most of our invoices will be
for EN, FR, DE, HU, SK, CZ, RO but some of them needs to be in Chinese.)
Thanks,
Laszlo
推荐答案
GNU Unifont< URL:http://en.wikipedia.org/wiki/GNU_Unifont>
< URL:http ://unifoundry.com/unifont.htm翻译了令人印象深刻的Unicode基本多语言平面。
Unifont最初是一个位图字体,但最近提供
的TrueType格式
< URL:http://www.lgm.cl/trabajos/unifont/index.en.html>。
两者都可以在Debian''lenny'中找到;分别为'unifont'和'ttf-unifont''
套餐。
-
\ a ??科学不通过投票工作而且它不起作用|
` \ authority.a ?? a ?? Richard Dawkins,_Big Mistake_(卫报,|
_o__)2006-12-27)|
Ben Finney
The GNU Unifont <URL:http://en.wikipedia.org/wiki/GNU_Unifont>
<URL:http://unifoundry.com/unifont.htmlcovers an impressive range of
the Unicode Basic Multilingual Plane.
Unifont is originally a bitmap font, but was recently made available
in TrueType format
<URL:http://www.lgm.cl/trabajos/unifont/index.en.html>.
Both are available in Debian ''lenny''; the ''unifont'' and ''ttf-unifont''
packages, respectively.
--
\ a??Science doesn''t work by vote and it doesn''t work by |
`\ authority.a?? a??Richard Dawkins, _Big Mistake_ (The Guardian, |
_o__) 2006-12-27) |
Ben Finney
GNU Unifont< URL:http://en.wikipedia.org/ wiki / GNU_Unifont>
< URL:http://unifoundry.com/unifont.htm在Unicode基本多语言平面上展示了令人印象深刻的
。
Unifont最初是一个位图字体,但是最近提供了
的TrueType格式
< URL:http://www.lgm。 cl / trabajos / unifont / index.en.html> ;.
两者都可以在Debian''lenny'中找到;分别是'unifont'和'ttf-unifont''
包。
The GNU Unifont <URL:http://en.wikipedia.org/wiki/GNU_Unifont>
<URL:http://unifoundry.com/unifont.htmlcovers an impressive range of
the Unicode Basic Multilingual Plane.
Unifont is originally a bitmap font, but was recently made available
in TrueType format
<URL:http://www.lgm.cl/trabajos/unifont/index.en.html>.
Both are available in Debian ''lenny''; the ''unifont'' and ''ttf-unifont''
packages, respectively.
我发现dejavu就是我需要。它涵盖了我需要的语言
以及更多:
非常感谢你的帮助!
L
I found out that dejavu is what I need. It covers the languages I need
and more:
http://dejavu.svn.sourceforge.net/vi.../langcover.txt
Thanks four your help!
L
我发现dejavu是我需要的。它涵盖了我需要的语言
以及更多:
对不起,这也不起作用。 Dejavu确实支持西里尔语和希腊语
字符,但我必须为此加载不同的ttf。他们没有统一的b $ b。 :-(到目前为止唯一一个工作的是unifont.tff,但是它的价格非常难以超过点大小= 10。
你能来吗?告诉我Geany在我的Ubuntu系统上使用了什么样的字体?
首选项告诉它是monospace但是当我在reportlab中加载
VeraMono.ttf时,它甚至不会显示latin2字符。
相比之下,请看这个在Geany中显示我的测试程序的例子:
It是一个真正可扩展的truetype字体,显示拉丁语1,拉丁语2,
中文,俄语和日语字符。它是否是相同的字体?这是否
意味着reportlab是错误的?如果我可以加载geany
使用的相同字体,它可能会永远解决我的问题。
谢谢,
Laszlo
Sorry, this did not work either. Dejavu does support cyrillic and greek
characters but I have to load a different ttf for that. They are no
unified. :-( The only one that worked so far was "unifont.tff" but it is
very ugly above point size=10.
Can you tell me what kind of font Geany is using on my Ubuntu system?
The preferences tells that it is "monospace" but when I load
VeraMono.ttf in reportlab, it will not even display latin2 characters.
In contrast, please look at this example that show my test program in Geany:
http://www.shopzeus.com/geany.jpg
It is a real scalable truetype font, displaying latin 1, latin2,
chinese, russian and japanese characters. Is it the same font? Does this
mean that reportlab is buggy? If I could load the same font that geany
uses, it would probably solve my problem forever.
Thanks,
Laszlo
这篇关于reportlab的通用unicode字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!