This is a discussion on "How do I choose a font size to exactly fit a string in a given rectangle?" within the JavaScript Forum section. This forum, and the thread "How do I choose a font size to exactly fit a string in a given rectangle? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How do I choose a font size to exactly fit a string in a given rectangle?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
How do I choose a font size to exactly fit a string in a given rectangle?
I have a background image and I need to put some text in this piece of image. Depending upon the length of the text the font size needs to be adjusted (increased/decreased). The user can select the font for writing (all TTFs)
Thanks. |
|
|
![]() |
| Tags |
| choose, font, size, exactly, fit, string, given, rectangle |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE7 font size and formatting - help | Xhristy | Web Page Design | 4 | Apr 3rd, 2007 17:35 |
| How font size works in CSS? | sahota | Web Page Design | 19 | Dec 20th, 2006 22:56 |
| Best way to define font size? | rubyfruit | Web Page Design | 11 | Sep 13th, 2006 13:58 |
| Overriding pre-set text/font size | autumn_whispers2me | Web Page Design | 10 | Apr 25th, 2005 17:24 |
| Rectangle with Rectangle gradient (all 4 corners)... | Billydakid | Graphics and 3D | 1 | Feb 16th, 2005 13:47 |