|
Posted by Jukka K. Korpela on 04/06/06 20:43
"City Dweller" <city@dweller.com> wrote:
> Does anyone here know how browsers calculate the leading (vertical
> distance between base lines) in a paragrap?
_In_ a paragraph?
> For example, consider this HTML code:
>
> LINE1<P>LINE2
It's poor code. The <P> tag is the start tag of a paragraph. Why would you
use it between _lines_?
> How is the vertical difference between the baselines of LINE1 and LINE2
> calculated?
This gets more and more confusing. Such a vertical distance depends on many
factors, but I'm afraid you cannot understand the issue before you understand
the basics of HTML.
> I am writing an HTML rendering application
Oh my.
By the way, what makes you think you should imitate web browsers? They do not
imitate the rendering principles of traditional typography. If you don't want
to just use a web browser (and perhaps tune the rendering with a style
sheet), why don't you start designing a _good_ layout engine? But you'll need
to learn HTML first.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Navigation:
[Reply to this message]
|