如何以混合字体显示文本(例如:印地文和英文) [英] How to show text in mix fonts(ex: hindi and english)

查看:128
本文介绍了如何以混合字体显示文本(例如:印地文和英文)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在记事本++工作。

它支持不同的语言字体。

我想显示一个文本文件,其中包含英语和印地语的单词。更不用说我的文本文件已经是UTF-8编码(unicode)。

目前当我选择'mangal'字体时,它显示的是印地语单词,但是在英语单词的位置,它显示了框和副对于任何其他字体也是如此。

请帮助我,我怎样才能实现这一点。

I am working in notepad++.
It supports different fonts for languages.
I want to display a text file which contains words of both english and hindi language. Not to mention that my text file is already in UTF-8 encoding(unicode).
Currently when I chose 'mangal' font, it shows hindi words but inplace of english words, it shows boxes and vice versa for any other font.
Please help me, how can I achieve this.

推荐答案

这个问题显示出对......的深刻误解不知道什么,几乎所有东西。 Unicode允许自由混合多种语言。你真的不需要特殊的印地语字体,很多字体都支持印地语和英语。此外,即使我听说过名为Hindi的字体,也不能有像印地语字体这样的Unicode字体。 印地语不是书写系统或剧本。字体可以支持devanāgarī,这是一个支持多种印度语言的脚本: http://en.wikipedia。 org / wiki / Devanagari [ ^ ]。



看,你的个人资料显示你来自印度。您应该比我更了解这些基本的东西。



您需要使用UNICODE定义,可移植字符串/字符类型声明编译C ++代码并使用适当的Unicode字体。请参阅此CodeProject文章:什么是TCHAR,WCHAR,LPSTR, LPWSTR,LPCTSTR(等)? [ ^ ]。



参见: http://utfcpp.sourceforge.net [ ^ ]。



-SA
The question shows deep misunderstanding of… I don't know what, pretty much everything. Unicode allows to freely mix many languages. You don't really need special "Hindi font", many fonts support both Hindi and English. Besides, even though I heard about fonts named "Hindi", there cannot be such Unicode font as "Hindi font". "Hindi" is not a writing system or script. A font can support devanāgarī, a script supporting a number of Indian languages: http://en.wikipedia.org/wiki/Devanagari[^].

Look, your profile shows that you are from India. You are supposed to know such elementary things better then I do.

You need to compile your C++ code with UNICODE definition, portable string/character type declarations and use appropriate Unicode fonts. Please see this CodeProject article: What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)?[^].

See also: http://utfcpp.sourceforge.net[^].

—SA


嘿,我想在我的 Whatsapp状态网站,同一段中使用的是印地文和英文两种语言...建议我
Hey, I want to use two different font style in my Whatsapp Status site, There is both languages hindi and english used in same paragraph... Suggest me


这篇关于如何以混合字体显示文本(例如:印地文和英文)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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