在ASP.NET页面中使用印地语字体 [英] Using Hindi fonts in ASP.NET Page

查看:98
本文介绍了在ASP.NET页面中使用印地语字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts。



我想在ASP.NET网站上的某些页面中使用hindi字体。我的机器上有这个字体。这可能不是一般的。我如何打包我的字体与网站,以便任何使用该网站的用户看到相同的字体文本。



即使i 在该控件的 Font 属性中为任何控件定义该字体。



例如。



(比如下拉框),



Hello Experts.

I want to use hindi font in some of my Pages on a ASP.NET Site. I have that font on my machine. that may not be available in general. how can i pack my font with the website, so that any user who uses the site sees the text in same font.

even if i define that font for any control in the Font properties of that control.

for example.

(let say drop down box),

<asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True" 
            Font-Names="Kruti Dev 010" Font-Size="18pt" Height="29px" 
            onselectedindexchanged="ddlCourse_SelectedIndexChanged" Width="361px">







它在本地机器上不起作用,可能是什么问题。 DDL中显示的项目显示为英文字体,



希望我自己清楚。



问候



Prateek。




it does not work on local machine, what could be the problem. the Items shown in DDL are shown as english font,

hope i made myself clear.

regards

Prateek.

推荐答案

只是给你一张便条:没有印地文字体这样的东西。 Devanagari脚本不仅用于印地语,而且用于印度其他大多数使用最多的语言 - 重要的是 - 在Sansrit中。现在,没有英语或拉丁语或阿拉伯语或梵文字体。支持Unicode的字体是通用的,但它们可以支持不同的Unicode代码点子集。据我所知,在所有现代桌面系统中,Devanagari至少支持一种字体(无论如何,你的问题仍然有效:如何保证?)。



看,我从未去过印度,也从未使用任何印度语,但我知道印度文化最基本也很简单的事实。



你的生活和工作在印度,旨在支持印地语,所以你应该知道更好。以我的拙见,你需要尊重你自己国家的文化...



-SA
Just a note for you: there is no such thing as "Hindi font". There is Devanagari script used not just in Hindi but in a good number of other most used languages in India and — importantly — in Sansrit. Now, there are no "English" or "Latin" or "Arabic" or "Devanagari" fonts. The fonts supporting Unicode are universal but they can support different sub-sets of Unicode code points. To best of my knowledge Devanagari is supported at least by one font in all modern desktop-oriented systems (anyway, you Question remains valid: how to guarantee it?).

Look, I've never been in India and never worked with any Indian language but I know this most basic and simple fact of Indian culture.

You live and work in India and aim to support Hindi, so you're supposed to know better. In my humble opinion, you need to respect culture of your own country…

—SA


您的字体必须位于C:\ Windows \Fonts。



此外,当您在生产服务器上发布您的网站时,您必须确保字体安装在那台特定的机器上。



另外要指出的是,你从哪里得到字符串?如果您从文件或数据库中获取字符串,请确保以印地语字体存储和检索字符串。
Your font must be located in "C:\Windows\Fonts".

Also, when you publish your website on a production server, you must make sure that the font is installed on that particular machine.

Another thing to point out is, where are you getting the strings from? If you're getting the strings from a file or a database, make sure that the strings are stored and retrieved in Hindi fonts.


这篇关于在ASP.NET页面中使用印地语字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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