Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Fredrik Jonson Newsgroups: comp.lang.java.programmer Subject: Re: Font evolution Date: 3 Mar 2013 18:48:39 GMT Lines: 29 Message-ID: References: X-Trace: individual.net jQQvVPJRot8qtNxhivCRJwW34vslSgP6X1Tb34BVQlgYsUHVT4WDTjk+saPgnOVyQ= Cancel-Lock: sha1:5i3Fkq/jiYY4VVHn7WEKSE+cp6M= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.java.programmer:22695 John B. Matthews wrote: > Roedy Green wrote: > > > What happens in Java apps when a glyph is missing from the > > specified font? > > I think you're supposed to see a WHITE SQUARE, which "may be > used to represent a missing ideograph." I don't do Java GUI programming very often, but in logs and terminals I regularily stumble upon U+FFFD in output from java code with broken charset conversion. U+FFFD is the unicode replacement character and is represented by a black rhomb with a white question mark inside. https://en.wikipedia.org/wiki/U%2BFFFD class Sscce { static public void main(String[] arg) { String foo = new String(new byte[] { (byte) -1 }); javax.swing.JOptionPane.showMessageDialog(null, foo); } } Granted, I'm not sure it is entirely correct to equate a missing ideograph with a unrepresentable chacacter? -- Fredrik Jonson