Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8024519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:53:30+00:00 2026-06-04T22:53:30+00:00

Some background: In Devanagari fonts, same character code can be represented as a different

  • 0

Some background: In Devanagari fonts, same character code can be represented as a different character visually. In one font ’10’ may be represented visually as ‘A’ and in another font ’10’ can be represented visually as ‘B’. So if I select text and change the font then the characters change as well. Interestingly, same happens for buttons on the keyboard. Pressing ‘A’ in one font will display ‘A’ and in another pressing ‘A’ will display ‘B’.

What I am trying to do is, identify the font used in some text pasted into my software so that when the font is changed, then I can programatically change the characters to mean the same thing for new font.

Any pointers on how to go about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:53:32+00:00Added an answer on June 4, 2026 at 10:53 pm

    For non-Unicode fonts, the only way to accomplish this is to have some understanding of each font’s mapping. That is problematic, because even though there is a non-Unicode encoding standard, many Devanagari/Hindi fonts ignore it or make modifications and additions, resulting in the case you describe above (e.g. key ‘A’ in one font may correspond to the shape ‘म’ while ‘A’ in another font has the shape of ‘क’…just theoretical examples).

    There exists at least one conversion tool that may help you, but ultimately it comes down to translating the input font-specific coding into the output font-specific coding. If you had a font-specific map to Unicode for each of the font-specific mappings, you could use Unicode as an intermediary and convert to/from any of your fonts’ schemes…some thing like:

    font         font-specific code    Unicode
    ----         ------------------    -------
    MyFont       0001                  U+0021
    MyFont       0002                  U+0022
    ...
    MyOtherFont  00F1                  U+0021
    MyOtherFont  00F2                  U+0022
    ...
    

    With a full database of these mappings you could translate text set in “MyFont” to text for “MyOtherFont” pretty easily.

    Of course, the best alternative, if possible, would be to convert both the fonts and text into Unicode, though…but that may not be possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some background: I'm a jack-of-all trades, one of which is programming. I learned VB6
Some background One of my current clients runs a chain of Internet points where
Some background: I am having an issue with one part of my program where
Some background to this question can be found at Check printing with Java/JSP and
Some background information, you can skip this part for the actual question this is
Some background. I am currently working on a distributed system in Java. The code
Some background: I have a site header and created some jQuery code that displays
Some background of the data : some different games are being played, and each
Some background, the relevance of which may fluctuate: I am currently in possesion of
Some background: I've created a Swing application which uses the Substance LaF (Thanks again,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.