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 4.0.4.2 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.
C.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.