Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
MSIL
hi...

my problem is i want to display both Hindi and English font together in a single text object...
the data is retrieved from Database in detail section...

is there any font which supports both Hindi and English font for single text object...

i have the text like this (हिमाचल प्रदेश Himachal Pradesh) .. if i select the font as Mangal then

the english letter will be displayed as boxes ... and if i select the font as arial the hindi letter

will will be displayed as boxes ...

The whole text is a single string...

help me...
Posted
Updated 11-Jul-18 10:30am
Comments
cuteband 6-Jun-11 1:59am    
show your code

1 solution

To start with, there is no such thing as Hindi font or English font! It's all Unicode, and there are fonts supporting some sub-sets of code points, scripts. There is even no such script as Hindi, there is Devanagari script (http://en.wikipedia.org/wiki/Devanagari[^]) which is used in a number of Indian languages.

You just need a font which support Devanagari. Use standard application "Character Map" bundled with all versions of Windows. One font which certainly support Devanagari and ASCII (if Mangal does not, what's the use of such font?) is "Arial Unicode MS".


—SA
 
Share this answer
 
Comments
thatraja 7-Jun-11 0:15am    
You beat me to it. 5!
Sergey Alexandrovich Kryukov 7-Jun-11 0:42am    
Thank you Raja. I feel uncomfortable as I had to explain to people from India about Devanagari and other scripts and how they are related to languages (Devanagari along supports over 20 most used languages, according to Wikipedia), but it happened few times here already. When it happened for the first-second time, I noted that your native culture deserved more respect. If I mentioned, for example, Russian, Belarusian, Ukranian or Bulgarian "font", software developers familiar with languages would laugh at me...
--SA
thatraja 7-Jun-11 4:39am    
Agree, May be some of the OPs don't know about that. But after some time they will.
Sergey Alexandrovich Kryukov 7-Jun-11 15:51pm    
Hope so.
Thank you.
--SA
vinu.1111 9-Jun-11 6:01am    
hi... SAKryukov thanks for the reply..
the above didn't worked for me.. :-(
but i have one idea
suppose consider a word "Hindi(हिन्दी)good" consider that as a full word
now what we can do is we can apply Arial Font for Whole word based on condition it should change the font..
like if(text = '(' )
then font = mangal upto this ')'
else Arial ...
but how to write formula .. i dont know .. help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900