File: arabic_font_rendering.html

package info (click to toggle)
xhtml2pdf 0.2.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,412 kB
  • sloc: python: 12,740; makefile: 247; xml: 24
file content (104 lines) | stat: -rw-r--r-- 1,318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<style type="text/css">

	@font-face {
        font-family: DejaVuSans;
        src: url('../../../manual_test/font/dejavu/DejaVuSans.ttf')
        }

    body {
    	font-family: DejaVuSans;
		background-color: red;
	}
	p.extra {
		background-color: yellow;
		line-height: 200%;
	}
	div {
		background-color: orange;
	}
	table {
		border: 2px solid black;
	}
	h1 {
		page-break-before: always;
	}

	tr {
	background-color:red;
	}


</style>
</head>

<body>
<div>
    <pdf:language name="arabic"/>
    <span>رقم الغرفة:</span>
</div>

Test
<p>
Block 1
<br>
Neue Zeile
<br><br>
  Und noch eine!
<p class="extra">
Block 2

<div style="page-break-after: always;">
	DIV 1 BEGIN

	<div class="extra">
		INNERDIV A

		<p style="background-color: blue;">
		INNERP

	</div>

	DIV 1 END
</div>

(NEW PAGE?) AFTERDIV

<h1>Heading 1(NEW PAGE?)</h1>

AFTERH1

<table>
	<tr>
		<td>رقم الغرفة:</td>
		<td>Oben rechts</td>
	</tr>
	<tr>
		<td>Unten links</td>
		<td>

<table>
	<tr>
		<td>xxx links</td>
		<td>yyy rechts</td>
	</tr>
	<tr>
		<td>xxx links</td>
		<td>yyy rechts</td>
	</tr>
</table>

		</td>
	</tr>
</table>

<p>
ENDE
</p>
</body>
</html>