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

  • Home
  • SEARCH
  • 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 7567011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:33:27+00:00 2026-05-30T14:33:27+00:00

I have a Unicode project which displays Arabic/Cyrillic/Chinese in Win7, but when I copy

  • 0

I have a Unicode project which displays Arabic/Cyrillic/Chinese in Win7, but when I copy the same exe file to a virtual machine with a fresh install of XP SP3 it shows black rectangles instead.

At the same time I have an owner-drawn control which displays them fine. I use Arial font in it. The default MFC controls seem to be using MS Sans Serif however. When I changed my owner-drawn control to use MS Sans Serif it started showing black rectangles as well.

So I assume that the problem is with MS Sans Serif in XP. Can MS Sans Serif display Unicode in XP?

  • 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-05-30T14:33:29+00:00Added an answer on May 30, 2026 at 2:33 pm

    On Windows, there are very few fonts with a wide enough character repertoire to represent all of Arabic, Cyrillic, and Chinese. The ones that I know about don’t ship with Windows by default.

    Instead, most of the Windows APIs for drawing text will automatically switch between fonts as needed for coverage. For example, you might be drawing a string in Tahoma that has some Chinese characters in it. Windows will automatically switch from Tahoma to a font that has the Chinese characters for you. This creates the illusion of having a font with a huge character repertoire.

    Windows does this automatically if the font you’ve chosen is one of the major TrueType or OpenType fonts. If you’ve chosen an obscure font or a bitmap font, it won’t. As another answer pointed out, MS Sans Serif is a bitmap font. Microsoft Sans Serif is a TrueType font.

    Also, for this font linking and fallback stuff to work, it needs to have some font to fall back to. For example, if you don’t have any fonts with Chinese characters, then you’ll get placeholder boxes instead of Chinese. Newer versions of Windows (like Windows 7) have lots of fallback fonts available out of the box. Older versions of Windows (like XP) shipped region specific versions that had only the fonts for that region out of the box. If you have a “U.S.” installation of Windows XP, you probably have to go into the control panel and tell it that you need multi-lingual support, which will load fonts and tables for Chinese, Arabic, etc.

    Update: Mark Ransom asked for documentation links. I’ve not found a single place that describes the details of font linking and font fallback in one place. What I know I’ve gathered from various sources, like MSDN blogs (especially Michael Kaplan and Raymond Chen) and Uniscribe documentation. Due to a project with extremely unusual constraints, I had to implement my own font linking and fallback. In the process I learned a lot about how Windows does it.

    Here are a few tidbits:

    Definitions of Font Linking and Font Fallback: http://msdn.microsoft.com/en-us/goglobal/bb688163

    Clarification of the differences between them: http://www.siao2.com/2005/10/01/476022.aspx

    Uniscribe documentation: http://msdn.microsoft.com/en-us/library/windows/desktop/dd374091(v=vs.85).aspx

    Some specifics on font fallback: http://msdn.microsoft.com/en-us/library/windows/desktop/dd374105(v=vs.85).aspx

    Michael Kaplan’s blog posts on font substitution and font linking start here: http://www.siao2.com/2005/03/20/399322.aspx

    You can learn a bit about font linking from the old MLang APIs provided by IE: http://msdn.microsoft.com/en-us/library/ie/aa767872(v=vs.85).aspx

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

Sidebar

Related Questions

I have a Unicode file (UTF-16 FFFE little-endian BOM) which contains rows of tab-separated
I have a project in Symfony2 which works good at my localhost, but after
I have decided to develop a (Unicode) spell checker for my final year project
I have some unicode codepoints (\u5315\u4e03\u58ec\u4e8c\u4e0a\u53b6\u4e4b), which I have to convert into actual characters
I'm working on a project which needs to be Unicode aware. PHP provides bunch
I'm developing a project which uses django-mptt, but I get strange results when I
I have a date import project in which the clients send ANSI-latin1 encoded files
I'd like to convert my visual studio project from MBCS to Unicode CS. But
I have a rather large (freeware) project written with Delphi 2007 which is using
I have two processes in my app. 1. myService.exe which is a windows service.

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.