svx textcharacterspacingcontrol: allow smaller kerning

On of the options in the kerning list is "very tight"
which sets a -3 pt kerning. However, the custom spin
button only allows down to -2 pt. Certainly we need to allow
the user to adjust as much as the other options allow,
and it only makes sense to allow as much negative
kerning as positive kerning.
Additionally, this field is supposed to show the
REAL current value - which it can't do if the range
of values is too limited.
Finally, we can't pre-focus "very tight" very easily
if that spin button cannot match the "very tight" value.

[Based on testing, a too-small kerning gets treated
as the smallest-possible-kerning and doesn't cause
real problems.]

In terms of positive kerning, the real maximum pt value seems
to be 1638 before the denormalized version of it hits the sal_Int16
maximum and then starts wrapping over into minimum values.

Change-Id: I465fcd0bbf3ca310b203004b46632a9a1ee01a6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128984
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
Justin Luth 2022-01-26 13:32:15 +02:00 committed by Justin Luth
parent 7f3682ecb8
commit 2334561bf1

View file

@ -3,8 +3,8 @@
<interface domain="svx">
<requires lib="gtk+" version="3.20"/>
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">-2</property>
<property name="upper">10000</property>
<property name="lower">-1638</property>
<property name="upper">1638</property>
<property name="step-increment">0.10</property>
<property name="page-increment">1</property>
</object>