English 中文(简体)
如何根据地兰老确定使用权线
原标题:How to detect the right font to use depending on the langage

地雷一方案有一个数据库,在单编码中填满街道名称(使用地理信息系统)。 用户选择他想要看到的世界任何地方(使用开放式地图、 go图或任何东西),我的节目用冰帽展示每一个选定的街道。 你们可能知道,并非每个人都能表现出非微小的特性......,这给我带来了头痛。 我很想知道,如何告诉我的方案,“如果用印本书写这一字,那么就使用印本”。

EDIT:我不得不提到,我想使用非标准字体。 口头、信使和其他一些人可以表达非排他性的言辞,但我想使用其他字体(我有一个具体的反省,另一个是泛欧,另一个是阿拉伯。) 我只得知道,根据我想写的字句选择了什么。

最佳回答

You need information about the language of the text. And when you decide what fonts you want, you do a mapping from language to font.

If you try to do it automatically, it does not work. The fonts for Japanese, Chinese Traditional, and Chinese Simplified look differently even for the same character. They might be inteligible, but a native would be able to tell (ok, complain) that the font is wrong.

Plus, if you do anything algorithmically, there is no way to consider the estethic part (for instance the fact that you don t like Arial :-)

问题回答

视窗中的Arial/Verdana等所有可能特性均使用精益8的文本和字体。 这绕过了整个探测问题。 一个方面将处理所有问题。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签