Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22695

Re: Font evolution

From Fredrik Jonson <fredrik@jonson.org>
Newsgroups comp.lang.java.programmer
Subject Re: Font evolution
Date 2013-03-03 18:48 +0000
Message-ID <slrnkj76o7.cmg.fredrik@biggles.jonson.org> (permalink)
References <d9r3j8lmi694s3j5qhma66q1dq58oh2mrd@4ax.com> <nospam-0ABCE6.04570303032013@news.aioe.org>

Show all headers | View raw


John B. Matthews wrote:

>  Roedy Green <see_website@mindprod.com.invalid> 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

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Font evolution Roedy Green <see_website@mindprod.com.invalid> - 2013-03-02 04:17 -0800
  Re: Font evolution Jan Burse <janburse@fastmail.fm> - 2013-03-02 14:32 +0100
  Re: Font evolution "John B. Matthews" <nospam@nospam.invalid> - 2013-03-03 04:57 -0500
    Re: Font evolution Fredrik Jonson <fredrik@jonson.org> - 2013-03-03 18:48 +0000
      Re: Font evolution "John B. Matthews" <nospam@nospam.invalid> - 2013-03-03 20:46 -0500
        Re: Font evolution Fredrik Jonson <fredrik@jonson.org> - 2013-03-04 06:59 +0000

csiph-web