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


Groups > comp.lang.javascript > #30380

Re: Finding out a fonts height

Newsgroups comp.lang.javascript
Date 2016-04-30 05:46 -0700
References <b0b36ce1-96a3-4556-912d-c385336e82c5@googlegroups.com>
Message-ID <6b0ea745-c983-407e-8bc9-ca76ca61f2cd@googlegroups.com> (permalink)
Subject Re: Finding out a fonts height
From bit-naughty@hotmail.com

Show all headers | View raw


Thanks guys.

Is there any way to tell, at a particular font size, and for a particular width, what the HEIGHT of a particular portion of text will be? Like, a "d" will be say, 5 pixels wide, and a "i" say 2 pixels, and so on, so - for a given sentence: "I went up", how do I tell how wide the whole thing will be? Following on from which, if I set a <div> at a width I want, what will be it's height on screen? (assuming it's a good say 10 lines of text etc., of course!)
Is there any way to find out? This REALLY seems tricky!

Thanks.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Finding out a fonts height bit-naughty@hotmail.com - 2016-04-27 10:17 -0700
  Re: Finding out a fonts height "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-04-27 23:18 +0200
    Re: Finding out a fonts height bit-naughty@hotmail.com - 2016-04-30 05:47 -0700
      Re: Finding out a fonts height "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-01 00:01 +0200
        Re: Finding out a fonts height bit-naughty@hotmail.com - 2016-05-04 23:04 -0700
  Re: Finding out a fonts height Aleksandro <aleksandro@gmx.com> - 2016-04-27 22:36 -0300
  Re: Finding out a fonts height bit-naughty@hotmail.com - 2016-04-30 05:46 -0700
    Re: Finding out a fonts height "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-05 18:13 -0700

csiph-web