2

Good Day! I am currently working on a program that prints a string in the printer. I am having problems regarding the display of the string to be printed. Ideally I want the font width of every character to be uniform. The problem occurs when when other language characters are set to be displayed. I've noticed that japanese characters are larger in width than the normal characters. Can I set these japanese characters to follow the font width of the normal characters?

Example: NNNNN NPD事本

Notice that the string with japanese encoding is larger in width. How can I make this string to follow the font width of my designated font? Is there a way? or is my case hopeless? Thanks in advance.

Oneb
  • 375
  • 1
  • 10
  • 21

1 Answers1

1

There are such things as monospace fonts, where each character takes the same width. I do not know if Japanese has such a font, or if there are English fonts and Japanese fonts that are both monospace and have the same width in pixels.

https://stackoverflow.com/questions/586503/complete-monospaced-unicode-font

The above question was closed as "off-topic" but it has some good links. The general consensus seemed to be you are either hosed, or in for a nightmare of working with different fonts in the same document.

Community
  • 1
  • 1
Kane
  • 4,047
  • 2
  • 24
  • 33
  • Ooh I see, I tried using the fonts in the links but failed to find one that will serve the purpose of what im looking for. Thanks though! – Oneb Feb 16 '12 at 09:27