我们如何使用Hindi Font创建WPF应用程序以及如何在数据库中保存hindi字体? [英] How do we Create a WPF application Using Hindi Font and how to save hindi fonts in Database?

查看:91
本文介绍了我们如何使用Hindi Font创建WPF应用程序以及如何在数据库中保存hindi字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用印地语字体创建WPF应用程序以及如何在数据库中保存印地文字体?

How do we Create a WPF application Using Hindi Font and how to save hindi fonts in Database??

推荐答案

首先,没有这样的事情印地语字体(即使有这样的名字的字体)。首先,没有像印地语这样的书写系统或脚本。现代印地语使用Devanāgarī

http://en.wikipedia.org/ wiki / Devanagari [ ^ ]。



此外,由于.NET使用Unicode,因此字体甚至不能是Devanāgarī字体。每个Unicode字体一次支持多个脚本,因此多种语言可以使用一种字体。 Devanāgarī非常受欢迎,默认情况下几乎所有现代平台都支持它,无需安装或配置任何特定于文化的内容。你可以使用支持这个脚本的通用字体之一。



更不用说有关于在数据库中保存字体的问题。但是,我猜你只是意味着保存文本。因此,您当然需要为Access数据库使用Unicode文本类型: http ://msdn.microsoft.com/en-us/library/ms714540%28v=vs.85%29.aspx [ ^ ]。



< dd> -SA
First of all, there is no such thing as "Hindi font" (even though there are fonts with such names). First, there is no such writing system or script as "Hindi". Modern Hindi uses Devanāgarī:
http://en.wikipedia.org/wiki/Devanagari[^].

Moreover, as .NET uses Unicode, a font cannot be even be a "Devanāgarī font". Each Unicode fonts supports several scripts at once, so several languages can use one font. Devanāgarī is so popular that it is supported by nearly all modern platforms by default, without a need to install or configure anything culture-specific. You can just use one of the general-purpose font supporting this script.

Even less sense makes the question about "saving a font in a database". However, I can guess that you merely mean saving texts. So, you certainly need to use Unicode text types for your Access database: http://msdn.microsoft.com/en-us/library/ms714540%28v=vs.85%29.aspx[^].

—SA


如果您有字体,可以通过为任何控件设置 Font 属性来使用它。你希望,你需要记住的是将这些字体部署到客户端,这样你的用户也可以看到它们。



你不在数据库中存储字体你在现代数据库系统中存储Unicode或UTF8字符,在db中称为 Collat​​ion 说:使用SQL Server排序规则 [ ^ ]
If you have a font you can use that by setting the Font property for any control that you wish, all you need to remember is to deploy those fonts to the client so your users can see them also.

You don't store fonts in a database you store characters which are Unicode or UTF8 in modern database systems which is called Collation in db speak : Using SQL Server Collations[^]


我的印象是你想使用带有专用字体的ISCII系列的8位编码来显示。

不要这样做!对于8位编码,文本文件中没有最初使用哪种编码的信息。现代软件使用unicode,适用于任何类型的印度字体 - 无需记住要应用哪种ISCII编码(梵文,马拉地语,泰米尔语......)。有关Uncode的更多信息,请参阅Sergey Alexandrovich的上述答案。
My impression is that you want to use an 8bit encoding of the ISCII family with a specialized font for displaying that.
Do not do so! With 8bit encodings, there is no information in a text file which encoding was used originally. Modern software uses unicode, and that works well with any kind of Indian fonts - without the need to remember which one of the ISCII encodings to apply (Devanagari, Marat Tamil, ...). For more information on Uncode, see Sergey Alexandrovich's answer above.


这篇关于我们如何使用Hindi Font创建WPF应用程序以及如何在数据库中保存hindi字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆