code pointer for #fdo67040
caolanm at redhat.com
Fri Jul 19 06:38:34 PDT 2013
On Fri, 2013-07-19 at 13:37 +0200, Tommy wrote:
> just one information what does those numbers exactly represent? digits or
> pixels or something else?
Width in characters, though actually "width of an average character"
where that's defined as LibreOffice's ye-old classic...
GetTextWidth("aemnnxEM") / 8.0;
Once everything is converted away from .src file to .ui files then that
can be redefined to something more sensible.
There's an insane historic hack in LibreOffice of per language
multipliers of the above calculation for the .src files e.g. something
like "if Russian scale the dialogs by X if Japanese scale by Y" which I
really hope to eventually kill off at the end of this process.
> actually in LibO 18.104.22.168 the "Replace" field can contain 19 visible
> digits, whilst the "with" field can contain 39...
Yeah, as above description its a fairly crude good-enough average width.
More information about the LibreOffice