[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units |
Date: |
Sun, 25 Jul 2021 10:22:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
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/
- [bug #58581] [PATCH] doc/groff.texi, man/groff_font.5.man: spacewidth value is missing units, Dave, 2021/07/18
- [bug #58581] [PATCH] doc/groff.texi, man/groff_font.5.man: spacewidth value is missing units, G. Branden Robinson, 2021/07/18
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units, Dave, 2021/07/20
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units, G. Branden Robinson, 2021/07/20
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units, G. Branden Robinson, 2021/07/20
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units, G. Branden Robinson, 2021/07/21
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units,
Bjarni Ingi Gislason <=
- [bug #58581] doc/groff.texi, man/groff_font.5.man: spacewidth value has incorrect units, Dave, 2021/07/30