如何在.Net项目中添加Bangla字体 [英] How to add Bangla font in .Net project

查看:73
本文介绍了如何在.Net项目中添加Bangla字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的asp dot net项目中添加bangla字体。假设我有一个文本框id = txtMsg

当我在文本框中书写时,它会出现Bangla Language。之后我会将这个bangla信息保存在SQL server中。我写了以下代码

Font-Names =SutonnyBanglaOMJMaxLength =50

但它不起作用。请帮助我。

I want to add bangla font in my asp dot net project. Suppose I have a textbox id= txtMsg
When I write in the textbox then it appears Bangla Language. After that I will save this bangla information in SQL server. I have written the following codes
Font-Names="SutonnyBanglaOMJ" MaxLength="50"
But it does not work. Please help me.

推荐答案

你总是需要申请字体SutonnyBanglaOMJ才能看到孟加拉语中的文字。因此,您在数据库中保存的内容可能是原始文本。一旦您将字体SutonnyBanglaOMJ应用于该原始文本,您将在Bangla中看到文本。



我的意思是你的数据总是以ASCII字符的形式保存在数据库中,如ab:&kl,这看起来不像孟加拉语你这没关系。



现在要查看Bangla中的数据,你需要将这个文本从数据库带到你的网页/窗体表格,然后分配给像文本框或标签。您需要为此控件指定字体SutonnyBanglaOMJ才能在Bangla中查看此文本。



这是我从你所做的陈述中理解的但它不起作用。



如果我理解错误,请告诉我。
You always need apply to font "SutonnyBanglaOMJ" to see text in Bangla. So may be what you saved in database is raw text. Once you will apply font "SutonnyBanglaOMJ" to that raw text you will see text in Bangla.

What I mean here is that your data will always get saved in database in "ASCII Character" like "ab:&kl" and this does not look like Bangla text to you and this is ok.

Now to view data in Bangla you need bring this text from from database on to your webpage/ windows form and assign it to some control like textbox or label. You need to give font "SutonnyBanglaOMJ" to this control to view this text in Bangla.

This is what I understood from statement made by you "But it does not work".

Please let me know if I understood it wrong.


这篇关于如何在.Net项目中添加Bangla字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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