summaryrefslogtreecommitdiffstats
path: root/lib/kotext/DESIGN
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/DESIGN')
-rw-r--r--lib/kotext/DESIGN20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kotext/DESIGN b/lib/kotext/DESIGN
index 12bc2940..dcb08ca7 100644
--- a/lib/kotext/DESIGN
+++ b/lib/kotext/DESIGN
@@ -26,17 +26,17 @@ Zoomed: (aka Normal)
Internal:
The former two were mostly for objects like frames etc, not for text. Text (the individual
- words and characters) are positioned with the layout coordinates. Layout is similar to the
+ words and characters) are positioned with the tqlayout coordinates. Layout is similar to the
Zoomed system, but always uses the same resolution. This resolution is sufficiently high to
- do the layout in integers, and not really lose info.
+ do the tqlayout in integers, and not really lose info.
- This is the high-resolution unit in which the text layout is done,
+ This is the high-resolution unit in which the text tqlayout is done,
currently set to 1440 DPI. Everything known the QRT classes will be in
this coordinate system (including the QTextFormats). When painting, we apply
the current zoom and resolution to find the right font size to use, and we
have to catch up with rounding differences. However the position of the words
- (i.e. layout) is the one determined previously in layout units. KoZoomHandler
- offers methods for converting between layout units and zoom-dependent points
+ (i.e. tqlayout) is the one determined previously in tqlayout units. KoZoomHandler
+ offers methods for converting between tqlayout units and zoom-dependent points
and pixels.
Note that the Internal coordinate system starts at the topleft corner of
@@ -73,25 +73,25 @@ Document (pt values, in double, KoPoint, KoRect.)
|
|--KWTextFrameSet::documentToInternal
V
-Internal coordinates (the coordinates given to QRT - in "layout units")
-Note that there are pixels and pts in the layout unit system too !
+Internal coordinates (the coordinates given to QRT - in "tqlayout units")
+Note that there are pixels and pts in the tqlayout unit system too !
There are conversions between LU points and document points,
but also direct conversions between LU pixels and view pixels.
Font sizes
==========
-A 12pt font will lead to a layout font of ptToLayoutUnit(12)=20*12=240pt -
+A 12pt font will lead to a tqlayout font of ptToLayoutUnit(12)=20*12=240pt -
that's the value stored in the QTextFormat.
However font metrics are calculated from the 100%-zoom-level font (e.g. 12pt for a 12pt font)
and _then_ multiplied by 20, instead of loading a 240pt font for that as we did before.
This is implemented by KoTextFormat::charWidth().
-On screen, at 100%, a layoutUnitToFontSize(240,false)=(240/20)*1.0=20.0pt font size will be used.
+On screen, at 100%, a tqlayoutUnitToFontSize(240,false)=(240/20)*1.0=20.0pt font size will be used.
This does NOT depend on the DPI settings. Qt takes care of pt->pixel conversion for fonts.
When printing... TODO, double-check whether Qt does pt->pixel conversion correctly
-(apparently it didn't, in Qt 2).
+(aptqparently it didn't, in Qt 2).
QFont multiplies by 10 and stores into a 'short'... So for QFont the maximum font size
is 3276, and in KOffice the maximum font size in points is around 163.