mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
Tests/LibPDF: Make text.pdf also use Tz, Tc, Tw, Ts operators
These set the horizontal scale factor, character spacing, word spacing, and text rise respectively. Also add a global scale transform, and set a text transform matrix with a scale for some of the text.
This commit is contained in:
parent
75d87ccf5f
commit
8507151850
|
@ -14,9 +14,10 @@ endobj
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
4 0 obj
|
4 0 obj
|
||||||
<</Length 291>>
|
<</Length 419>>
|
||||||
stream
|
stream
|
||||||
BT
|
BT
|
||||||
|
0.9 0 0 0.9 0 0 cm
|
||||||
/F1 25 Tf
|
/F1 25 Tf
|
||||||
-30 TL
|
-30 TL
|
||||||
40 40 Td
|
40 40 Td
|
||||||
|
@ -24,8 +25,16 @@ BT
|
||||||
[ (Hello) -1000 -1000 (World) ] TJ T*
|
[ (Hello) -1000 -1000 (World) ] TJ T*
|
||||||
[ (Hello) -1000 ] TJ [ -1000 ] TJ [ (World) ] TJ T*
|
[ (Hello) -1000 ] TJ [ -1000 ] TJ [ (World) ] TJ T*
|
||||||
1 0 0 1 45 130 Tm [ 200 (Hello) -2000 (World) ] TJ T*
|
1 0 0 1 45 130 Tm [ 200 (Hello) -2000 (World) ] TJ T*
|
||||||
(should be the same on all lines:) '
|
0.9 0 0 0.9 40 160 Tm
|
||||||
(The distance between "Hello" and "World") '
|
80 Tz
|
||||||
|
(should be the ) ' (same on all lines:) Tj
|
||||||
|
15 Ts /F1 10 Tf ( super) Tj /F1 25 Tf -15 TL
|
||||||
|
3 Tc
|
||||||
|
5 Tw
|
||||||
|
(The distance ) '
|
||||||
|
(between "Hello" and "World") Tj
|
||||||
|
10 Ts
|
||||||
|
(yo) Tj
|
||||||
ET
|
ET
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,10 +52,10 @@ xref
|
||||||
0000000062 00000 n
|
0000000062 00000 n
|
||||||
0000000114 00000 n
|
0000000114 00000 n
|
||||||
0000000227 00000 n
|
0000000227 00000 n
|
||||||
0000000568 00000 n
|
0000000696 00000 n
|
||||||
|
|
||||||
trailer
|
trailer
|
||||||
<</Size 6/Root 1 0 R>>
|
<</Size 6/Root 1 0 R>>
|
||||||
startxref
|
startxref
|
||||||
666
|
794
|
||||||
%%EOF
|
%%EOF
|
||||||
|
|
Loading…
Reference in a new issue