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


Groups > comp.lang.java.gui > #4939

Re: Determining font letter center

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.gui
Subject Re: Determining font letter center
Date 2012-01-14 01:28 -0800
Organization Canadian Mind Products
Message-ID <8li2h75d6cei5ihtir1rps124ptrnkjafn@4ax.com> (permalink)
References <9ab7338e-e8e1-4e12-8d8e-43e6469d8215@s6g2000pbi.googlegroups.com>

Show all headers | View raw


On Fri, 13 Jan 2012 10:32:09 -0800 (PST), Fred
<fred.l.kleinschmidt@gmail.com> wrote, quoted or indirectly quoted
someone who said :

>How can I find out how high a letter is when using a particular font?
>I am trying to place the center of capital letters at a specific
>location.

You can't get precise values, without analysing pixels, but you can
get approximations. See http://mindprod.com/jgloss/fontmetrics.html
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
One of the most useful comments you can put in a program is 
"If you change this, remember to change ?XXX? too".
 

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar


Thread

Determining font letter center Fred <fred.l.kleinschmidt@gmail.com> - 2012-01-13 10:32 -0800
  Re: Determining font letter center Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 13:49 -0500
    Re: Determining font letter center Fred <fred.l.kleinschmidt@gmail.com> - 2012-01-13 11:58 -0800
  Re: Determining font letter center Roedy Green <see_website@mindprod.com.invalid> - 2012-01-14 01:28 -0800

csiph-web