[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] line_breaker_rep question
From: |
skhilji |
Subject: |
[Texmacs-dev] line_breaker_rep question |
Date: |
Thu, 20 May 2004 09:25:26 -0400 |
I noticed that in several places when we pass penalty values based on length
differences to line_breaker_rep::test_better() function, we divide it by PIXEL
first.
For example,
square(d/PIXEL)
square((spc->min-line_width)/PIXEL)
Why are we doing this?
Based on what I know, if you have, for example, a length of 1.0 inches, then
TeXmacs works with values that are
1.0 * dpi * PIXEL = <TexMacs Values>
So if we divide a length by PIXEL, we get the value in inches multiplied by
dpi. It is somewhat confusing for me to come up with an explanation as to why
we are dividing by PIXEL in every case.
Salman
- [Texmacs-dev] line_breaker_rep question,
skhilji <=