Rank: Member
Groups: Member
Joined: 8/16/2004(UTC) Posts: 3
|
Do you have a product that can calculate the exact height of a message that can be used on a web site.
Thanks
Andy
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Hello Andy,
Do you need to calculate the height of text message? |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/16/2004(UTC) Posts: 3
|
Fedor,
My application takes a classified ad. This ad can be as many lines and have many different fonts and heights (it can also have a picture as part of the ad). I need to know the exact height of the ad so that I can pass that value to an XML document.
Is there any way to capture the height of this ad? When I use adobe designer I can see the height change as I drag the box wider or longer.
Your help would be greatly appreciated.
Thanks
Andy
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Hello Andy, It is possible to get extent of the single line of text with certain font settings using Graphics Mill. So your task can be solve by writing a script which: - Splits all the text into separate lines.
- Splits the lines into sub-lines with single font settings (if necessary).
- Using Graphics Mill maximum height at the string.
- Adds maximum heights of all the lines and thus gets a total height of entire text
So it is feasible, but requires some work. How does your text described (XML, HTML, RTF)? Is it easily divisible into lines?
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/16/2004(UTC) Posts: 3
|
Andrew,
It is an online application. The width of a line is in inches. How would I know when the line ends? It woud be like taking this message making it 1.25" wide and telling me what the height would be.
I use a textarea for users to enter text. They can do centering etc.
The solution I need has to be dynamic.
Hopefully you understand the probelm and have a product that could help.
Thanks
Andy
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Could you tell more detailed in what form the string should be passed to server? How are multiple fonts are specified for the string? As far as I understand you should either using multiple textareas or use some markup language. Is it so? Is it possible to send a link to your application (you can submit case with it)? By the way, as far as I understand, you are doing it for web. In this case you should better using pixels instead of inches. Or are you going to print it further? Edited by user Friday, May 23, 2008 3:55:22 PM(UTC)
| Reason: Not specified
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.