From 4188f38ad56d7ba2ea46e94403f305243514f80c Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 24 Jul 2014 15:49:36 +0200 Subject: add pdf and mobi libraries --- .../mpdf/examples/example52_lineheight.htm | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 inc/3rdparty/libraries/mpdf/examples/example52_lineheight.htm (limited to 'inc/3rdparty/libraries/mpdf/examples/example52_lineheight.htm') diff --git a/inc/3rdparty/libraries/mpdf/examples/example52_lineheight.htm b/inc/3rdparty/libraries/mpdf/examples/example52_lineheight.htm new file mode 100644 index 00000000..73eca93a --- /dev/null +++ b/inc/3rdparty/libraries/mpdf/examples/example52_lineheight.htm @@ -0,0 +1,36 @@ + + + + + +

Line-height & vertical alignment

+
In these examples, top and bottom padding are set to 0, so the block height = line height.
+
The inline text (set to a larger font-size) inherits the line-height as a factor of the largest font-size i.e. the line height will expand to reflect the largest font on the line.
+Line-height: "normal" (set in mPDF by default as 1.33).
+

Normal text 16pt font-size  and normal again

+ +
Line-height: 2.0 When using relative line-heights, the text is aligned vertically so that the centre-line of the line goes throught the middle of the largest font.
+

Normal text 16pt font-size  and normal again

+ +
Line-heights set as a percentages are computed on the base font-size, and are then inherited and treated the same as absolute lengths. This is also true for "em" values. The line-height of this line is set as 200% of the paragraph font-size (10pt).
+When using absolute line-heights, the text is aligned vertically so that the centre-line of the line goes throught the middle of the base font.
+This means that as far as possible, multiple lines will remain equally spaced
+Line-height: 200%
+

Normal text 16pt font-size  and normal again

+ +
If the line includes a font-size greater than 1.6 times the computed line-height, then the text baseline is dropped so that the text will approximately fit within the line-height. +
Line-height: 2em
+

Normal text 18pt font-size  and normal again

+ +
If the line includes a font-size greater than 2 times the computed line-height, then the line-height is increased to accommodate the larger fontsize.
+Line-height: 2em
+

Normal text 24pt font-size  and normal again

+ + \ No newline at end of file -- cgit v1.2.3