Results 1 to 4 of 4
  1. #1
    pquiring is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Howto : modify a Font (Gylph) at runtime

    Is it possible to change just one character/glyph in a loaded font or derived font?
    Or create your own font, or can I use a supplied font instead of just those provided by system.

    Basically I want to change the divide symbol which is usually just a diagonal slash into a proper math symbol (horizontal line with dot above and below).

    Thanks.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: Howto : modify a Font (Gylph) at runtime

    Quote Originally Posted by pquiring View Post
    Is it possible to change just one character/glyph in a loaded font or derived font?
    None that I know of. Even if possible, it's hardly likely to be doable in pure Java.

    Quote Originally Posted by pquiring View Post
    Basically I want to change the divide symbol which is usually just a diagonal slash into a proper math symbol (horizontal line with dot above and below).
    There's already (\u00F7) so why reinvent the wheel?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: Howto : modify a Font (Gylph) at runtime

    Moved from Advanced Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    pquiring is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Re: Howto : modify a Font (Gylph) at runtime

    Quote Originally Posted by DarrylBurke View Post
    None that I know of. Even if possible, it's hardly likely to be doable in pure Java.


    There's already (\u00F7) so why reinvent the wheel?

    db
    Thanks! Simple answer.

Similar Threads

  1. HOWTO: Interdependent field Annotations
    By sideswipe091976 in forum Advanced Java
    Replies: 0
    Last Post: 05-11-2011, 06:46 PM
  2. Replies: 0
    Last Post: 08-18-2010, 10:31 AM
  3. Replies: 5
    Last Post: 04-25-2009, 08:00 PM
  4. Howto force to use an external jar
    By riccardo_b in forum Eclipse
    Replies: 0
    Last Post: 12-11-2008, 10:08 AM
  5. howto make a standalone application?
    By Jerre in forum New To Java
    Replies: 4
    Last Post: 06-08-2008, 09:58 AM

Posting Permissions

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