Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GUI: How can I find out if certain Unicode characters are supported?

I noticed that Metal L&F doesn't support certain arrow characters from Unicode, while Nimbus and GTK L&Fs do support them.

Unsupported characters are just displayed as: ...

Can I

  1. either look up (manually), which L&F supports which Unicode chars,
  2. or find it out at runtime?

EDIT: Or, should it only depend on the L&F's default font, my question perhaps should be:
"how do I find out, which Java font supports which Unicode characters?"

like image 553
java.is.for.desktop Avatar asked Dec 29 '10 20:12

java.is.for.desktop


People also ask

Why do some Unicode characters not show up?

If you are unable to read some Unicode characters in your browser, it may be because your system is not properly configured. Here are some basic instructions for doing that. There are two basic steps: Install fonts that cover the characters you need.

How do I identify a Unicode font?

Right-click your font and select Properties . Select the tab "CharSet/Unicode". If the Font Encoding Type is not Symbol and the Supported Unicode Ranges list anything besides or in addition to Basic Latin and Latin-1 Supplement, your font is a Unicode font or is compatible with Unicode.

What is Unicode compliant font?

A Unicode font is a computer font that maps glyphs to code points defined in the Unicode Standard. The vast majority of modern computer fonts use Unicode mappings, even those fonts which only include glyphs for a single writing system, or even only support the basic Latin alphabet.

How do I display Unicode in my browser?

Basically, you need to go to Options... in the Tools menu. Under General > Languages, chose Unicode (UTF-8). Under General > Fonts and Colors, make the selections illustrated below.


1 Answers

You can use the canDisplay method to test if a java.awt.Font object can display a given character. You can typically get the font from GUI components using the getFont() method.

like image 98
user268396 Avatar answered Sep 26 '22 10:09

user268396