Results 1 to 3 of 3

Thread: Junk character

  1. #1
    javap is offline Member
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default Junk character

    Hello everybody, I have a problem displaying special characters ,i.e the accented characters like ligature left half, ligature right half, grave accent etc. When these characters are written to an IMAGE they appear as junk characters or say like square boxes.

    By setting the font with "Arial Unicode MS" font , its coming correctly. But I need to use a font called 'Minion', which currently its not coming correctly.

    do we need to use any additional encoding along with Minion font?/ any option which would give correct results with Minion font.

    Any response is greatly appreciated.

    Thanks.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Never heard of Minion font, but if it doesn't have the glyphs for those characters you won't be able to display them.

    To know whether the font is capable of displaying the characters, use Font#canDisplayUpTo(...)

    db

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    According to http://en.wikipedia.org/wiki/Minion_(typeface)
    Minion Expert is a separate font package that include fonts containing small caps, ligatures, old style figures, and swash glyphs.
    That does imply that Minion (i.e. not Minion Expert) does not include fonts for ligatures.

    db

Similar Threads

  1. ^ Escape character
    By GaBuG in forum Advanced Java
    Replies: 3
    Last Post: 12-31-2010, 02:04 AM
  2. WriteUTF() add junk characters to Bluetooth printer
    By lotiman2003 in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-21-2010, 11:48 AM
  3. Read from a certain character to a certain character
    By blackstormattack in forum New To Java
    Replies: 0
    Last Post: 03-16-2009, 12:36 PM
  4. illegal character: \92
    By jlgraham in forum New To Java
    Replies: 3
    Last Post: 06-29-2008, 10:04 AM
  5. reading text character by character
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-09-2007, 09:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •