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 7499729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:55:24+00:00 2026-05-29T19:55:24+00:00

I create an image in C# which should contain some text in Japanese. Then

  • 0

I create an image in C# which should contain some text in Japanese. Then I put this image into the whole page which is also in Japanese. The whole page is displayed correctly (Encoding: UTF-8), but the image is rendered incorrectly. Instead of the correct text I get wrong symbols (not ‘?’ but something similar to square).

I need to write this text on image in Arial. Does anyone know what might be wrong? Why text is not rendered correctly.
And one more think… when I test it on my local machine everything looks correctly, but when I deploy app with page on external server this strange error occurs.

In order to create image with text I use:

Font f = Font("Arial", 10f, FontStyle.Bold); 
g.DrawString(text, f, b, rect); 
  • 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-29T19:55:27+00:00Added an answer on May 29, 2026 at 7:55 pm

    The external server likely has a version of Arial installed, which doesn’t include the Japanese character set (as far as I recall, the one that includes Japanese is called “Arial Unicode MS”). Remember that when you’re generating an image in ASP.NET, it’s the servers fonts that are used.

    Note, however, that legally, you’re not allowed to install “Arial Unicode MS”, except when it’s part of Office – or if you’ve licensed it (“Arial Unicode”) from Monotype/Ascender. It may be a more viable option to replace Arial with some other typeface, depending on your funds (I’ll keep my subjective opinions on Arial out of this).

    When installing a new font on the server, make sure you restart IIS. .NET won’t recognize installed fonts until a restart (it’s not enough to restart the application – may be enough to recycle the app pool, but I never tried that).

    Update

    If it still doesn’t work, it’s likely font fallback isn’t in place. I.e., you’re specifying “Arial”, but GDI+ (DrawString) doesn’t know to fall back to “Arial Unicode MS” for characters that aren’t in Arial (Office sets this up on install, I think).

    Two possibilities:

    • Change your code to actually use the font (i.e. “Arial Unicode MS”) rather than “Arial” (which never has Japanese characters in any other versions). This has the disadvantage that if you’re using other characters than Japanese, they may look (even) less good than in the standard “Arial” typeface, because “Arial Unicode MS” includes no kerning or other such features.

    • Or check if there’s a link between Arial and other fonts in your (local) registry: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink – one of those fonts will be the one actually displaying your Japanese characters as a fallback font – it may not even be “Arial Unicode”. You may add the same link manually in registry on the server (and probably restart IIS again).

    Another likely candidate that may be used for fallback is “MS Gothic”. As far as I recall, GDI+ uses the above “FontLink” system for font fallback, while WPF uses its own system. The easiest way to be sure (when you’re using fonts that you control anyway) is to directly use a font that has Japanese glyphs. Arial Unicode is merely intended as a last resort for Windows when glyphs aren’t found in other fonts – not as something that looks nice in itself.

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

Sidebar

Related Questions

I have this code which should create a splash image with either no animation
I have this code, which creates an image, and then adds some effects to
i am working on a project which requires some image processing, i also asked
I'm trying to create a specialized class which should contain, among other things, a
I have Some Background image in to My Application. That background Image also contain
I want to create an animation effects which sort of shakes an image on
I'm trying to create a dialog which will allow users to upload an image.
i need to create a camera class which draw animation from openGL ES. image
I like to create a Flex application, an image gallery, which comes like 3D
I have created a XML image gallery, which displays text in between each slide.

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.