Werner LEMBERG <[email protected]> writes:

>> Again, I have no idea what you are trying to achieve here and how
>> kerning has anything to do with it.
>
> OK.  Next try.
>
> Here are the assumptions.
>
> * Numbers 0, 1, 2, ..., 9 all have a width of 100 units.
>
> * Number 10, however, has a kerning of -50 units between digits 0
>   and 1, making a total width of 150 (instead of 200).
>
> * I want to stack the numbers 8, 9, 10 vertically so that the digits
>   8, 9, and 0 are properly aligned.
>
> * Single-digit numbers are left-aligned.

Why?  They have equal width.  Do you rather mean that the reference
point is supposed to be on the left edge?  That is not a matter of
alignment.  What is the alignment supposed to be if there are _only_
two-digit numbers?


> ```
>          y ^
>            |
>            |
>            |
>            |
>     +--------------------+
>     |                    |
>     |         10         |
>     |                    |
>     +--------------------+
>            |             |
>            |      9      |
>            |             |
>            +-------------+
>            |             |
>            |      8      |
>            |             |
>   ---------x-------------+--------------> x
>     |      |             |
>   -50      0            100
> ```
>
> As far as I can see, I have to right-align number 10, then shifting it
> to the right by the width of a single digit.
>
>
>     Werner

-- 
David Kastrup

Reply via email to