adjusting tracking or letter spacing of text?

From: Joseph (ILLicon_at_unchance.net)
Date: 02/19/04

  • Next message: bouchia.nazha_at_free.fr: "Re: JVM memory problem on Linux"
    Date: 18 Feb 2004 23:01:11 -0800
    
    

    Letters appear too close together in sans serif default font
    when displayed in a JTextComponent. I see that there is
    a field called advance in one of the classes in java.awt.font,
    which is described as controlling letter spacing (or tracking),
    but it is extremely unclear how this field can be set or
    how it then can be made to affect a JTextComponent. Ideally
    it seems as if there should be a way to call some
    method in the relevant Font object in order to produce an
    adjustment of this property of how the font is rendered
    (as well as related properties such as space between lines
    of text and so on). Perhaps there is a way to do this
    with TextLayout, though it seems like the amount of effort
    required to manipulate TextLayout objects is far out of
    proportion to the seemingly simple task I am trying to do.
    Any assistance would be greatly appreciated.


  • Next message: bouchia.nazha_at_free.fr: "Re: JVM memory problem on Linux"

    Relevant Pages

    • Re: custom key commands
      ... a phenomenon of the distant past. ... Frinstance, I get all my macronned letters with Ctrl+Alt+hyphen, ... (One of the letters that insists on its own font -- sometimes Times ...
      (microsoft.public.word.docmanagement)
    • Re: custom key commands
      ... F&R is a funny beast with a mind of its own; it doesn't always work as you might expect with non-ascii characters but sometimes it does what you want without quite managing to show it correctly. ... window, and then it's fine. ... (One of the letters that insists on its own font -- sometimes Times ...
      (microsoft.public.word.docmanagement)
    • Re: Schempp-Hirth Font Face
      ... Anyone know if there is any font out there that will approximate ... I have a Ventus 1a that I am putting new contest letters on. ... Its the logo thats the issue. ... All you need to do is open the .pdf in Illustrator (or ...
      (rec.aviation.soaring)
    • Re: letter content become ALL CAPS when mail merged
      ... check the obvious - does the text have Caps/Smal Caps applied to it? ... I would compare the font list with the list on another ... > thinking it might be his MS-Word configuration, ... > with all letters, ...
      (microsoft.public.word.mailmerge.fields)
    • Re: PING: Mr Gubbins
      ... I've never considered a font as an object of hatred or derision, but I am prepared to learn! ... I make it a matter of policy to reply to officious letters by using completely innapropriate fonts. ... The more pompous/arrogant/overbearing/ignorant the letter or e-mail that I receive, the more likely it is that I will reply in a ridiculous font. ... I have even gone to the length of sending letters in multicoloured words in something like a Transylvanian script and then printing it off on a colour printer ...
      (uk.games.video.misc)