本文介绍了开放式字体问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,这是显示少数民族语言的问题.

Basically,this is a problem of displaying a minority language.

让我简要介绍一下:

  1. 我一直在尝试使我的Opentype字体(具有某些功能)在非Windows(在Windows上可以正常工作)平台(Android,iOS等)上正常工作.

  1. I've been trying to make my Opentype font(which has some features in it) work properly on non-windows(on windows, it works fine) platforms(Android ,iOS etc.).

我真正要处理的是一个与显示阿拉伯语一样复杂的问题(包括字形替换,整形等).

What I'm truly dealing with is a problem as complicated as displaying Arabic language(including glyph substitution,shaping etc.).

我只是想在自己的软件中正确显示字符,因为要获得系统范围的支持可能会更加复杂.

I simply want to display the characters properly in my own software,because system wide support may be even more complicated for me to achieve.

我检查了ICU,Pango,Harfbuzz ...并最终决定在Pango上工作. 请参阅Pango ScriptGallery .

I checked out ICU, Pango, Harfbuzz... and finally decided to work on Pango. See Pango ScriptGallery.

所以,这是问题:

1.我可以在项目中使用pango作为支持模块来显示该语言吗?我试图在ubuntu上安装Pango,但没有成功.我现在很困惑,因为Pango在安装时与harfbuzz,cairo,freetype,fontconfig blabla有关.2.如果不能,还有其他轻量级的方法可以实现吗?

1.Can I use pango as a supportive module in my project to display that language? I tried to install Pango on ubuntu,came with no success.I'm pretty confused now because Pango is related to harfbuzz,cairo,freetype,fontconfig blabla when installing.2.If can't, is there any other light-weight ways to achieve that ?

任何帮助将不胜感激.

推荐答案

您使用或应使用哪种编程语言?

Which programming language do you use or you should use?

在询问标签时,您可以查看(第二个代码),只需为其执行sudo apt-get install python-gtk2参考

As you question tags, you may have a look at this (the second code), just do a sudo apt-get install python-gtk2 for it, ref

一种轻量级的解决方案将直接使用HarfBuzz .

A lightweight solution would be using HarfBuzz directly.

这篇关于开放式字体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-25 20:56