Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
andylk  
#1 Posted : Monday, August 16, 2004 12:50:00 AM(UTC)
andylk

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
Fedor  
#2 Posted : Monday, August 16, 2004 1:04:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,508

Thanks: 3 times
Was thanked: 49 time(s) in 48 post(s)
Hello Andy, Do you need to calculate the height of text message?
Best regards, Fedor Skvortsov
andylk  
#3 Posted : Monday, August 16, 2004 8:38:00 AM(UTC)
andylk

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
Andrew  
#4 Posted : Monday, August 23, 2004 11:53:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 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:
  1. Splits all the text into separate lines.
  2. Splits the lines into sub-lines with single font settings (if necessary).
  3. Using Graphics Mill maximum height at the string.
  4. 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?
andylk  
#5 Posted : Tuesday, August 24, 2004 3:39:00 AM(UTC)
andylk

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
Andrew  
#6 Posted : Wednesday, August 25, 2004 8:47:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 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

Users browsing this topic
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.