如何在asp.net程序中以特定字体显示 [英] how to diplay in specific font in asp.net program

查看:74
本文介绍了如何在asp.net程序中以特定字体显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在创建一个网站,用于在印地文中显示某些内容.我的系统没有问题,但是我想在Web上发布站点,然后在其他访问我的站点的计算机上显示或不显示.如果无法正常工作,请提供详细答案,然后显示印地文内容.


I am creating a website which use to display in hindi in some content. my system is not problem but i want to publish site in web then in other computer which access my site is display in hindi or not. please give answer in detail if not work then how to display content in hindi.

推荐答案

来吧,没有什么像印地语字体".现代印地语或所谓的标准印地语使用梵文书写系统以及许多其他印度语言.参见:
http://en.wikipedia.org/wiki/印地语 [ http://en.wikipedia.org/wiki/Devanagari [ http://www.unicode.org/charts/ [ http://www.unicode.org/charts/PDF/U0900.pdf [ ^ ],
http://www.unicode.org/charts/PDF/UA8E0.pdf [ ^ ].

(我从未去过印度,也许我对印度的文化还不够熟悉,但是我认为它应该得到更多的尊重.为什么我应该向居住在印度的软件开发人员解释这些基本事实呢?!)

现在,梵文已经足够流行,因此几乎所有现代系统默认都支持对应的Unicode子集.您不需要做任何特别的事情.基本上,您需要使用UTF-8编写Web页面并在HTTP-EQUIV中对其进行规定:

Come on, there is nothing like "Hindi font". Modern Hindi or so called Standard Hindi uses Devanagari writing system, as well as many other Indian languages. See:
http://en.wikipedia.org/wiki/Hindi[^],
http://en.wikipedia.org/wiki/Devanagari[^].

In this way, when it comes to support of one of those languages, this is a matter of support Devanagari, more exactly, the corresponding Unicode subset.

Please see:
http://www.unicode.org/charts/[^],
http://www.unicode.org/charts/PDF/U0900.pdf[^],
http://www.unicode.org/charts/PDF/UA8E0.pdf[^].

(I''ve never been to India and maybe I''m not familiar well enough with Indian culture, but I think it deserves much more respect. Why should I explain these basic facts to a software developer living in India?!)

Now, Devanagari popular enough, so the corresponding Unicode subset it is supported by default by nearly all modern systems. There is nothing special you should do. Basically, you need to write the Web pages using UTF-8 and prescribe it in HTTP-EQUIV:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



即使站点默认情况下已调整为支持UTF-8,HTTP-EQUIV也非常重要.如果用户使用网页保存文件并在本地查看,则除非HTTP-EQUIV中指定了字符集信息,否则该字符集信息将会丢失.

—SA



HTTP-EQUIV is very important even if the site is tuned to support UTF-8 by default. If a users saves a file with a Web page and view it locally, the charset information is lost unless it is prescribed in HTTP-EQUIV.

—SA


这篇关于如何在asp.net程序中以特定字体显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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