Follow-up Comment #12, bug #58581 (project groff):

[comment #10 comment #10:]
> Hi Bjarni,
> 
> [comment #4 comment #4:]
> >   I read the definition of "unitwidth", so then I understood, that the
> > numbers in the font files are _relative_(!) to the "unitwidth" value.
> > 
> >   So the actual size of a space is "spacewidth / unitwidth" part of the
> > point size of the font.
> 
> This reasoning does not work for, e.g., the utf8 device.
> 

  It does work.

Read the information about the "unitwidth".
Values in the font files are "normalized" with the value of "unitwidth".
So the formula is:

current spacewidth = spacewidth(font file) * (current type size) /
unitwidth

>
> Your formula would give an actual size of a space on the utf8 device of 2.4
times the point size.
> 
 And the type size is a single value "10 s" = "10 p".

  So actually the unit for spacewidth is correct, but its value is based on
the prerequisite of
type size having the value "unitwidth".

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58581>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to