forked from impallari/Font-Testing-Page
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
210 lines (173 loc) · 7.18 KB
/
index.php
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php header("Content-type: text/html; charset=utf-8"); // UTF 8 ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Font Testing Page - Latin Version</title>
<link type="text/css" href="css/styles-v9.css?rand=<?php echo rand(5,500)?>" rel="stylesheet" charset="utf-8" />
<link type="text/css" href="css/print-v9.css" rel="stylesheet" media="print" charset="utf-8" />
<script src="js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
<script>localStorage.clear();</script>
<script src="js/fontdrag.js" type="text/javascript" charset="utf-8"></script>
<script src="js/otfeatures-v9.1.js" type="text/javascript" charset="utf-8"></script>
<script src="js/contentEditable" type="text/javascript" charset="utf-8"></script>
<script src="js/constants-latin.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function(){
// Tabs
var tabContainers = $('div.tabs > div');
$('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide().filter(this.hash).show();
$('div.tabs ul.tabNavigation a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();
// OT Features Panel
$('#showhide').click(function () {
$('#otfeatures').slideToggle("fast", function() {
$("#showhide").text($(this).is(':visible') ? "Hide OpenType Features" : "OpenType Features");
});
});
// OT Features initial Run
refreshFeatures();
// Grab the text from the JS constant file, and show it
prepareAndShowFontLayout();
});
</script>
</head>
<body spellcheck="false">
<?php include("includes/top.php"); ?>
<section id="custom">
<div class="tabs">
<!-- Navigation (Ideally, this should be outside the "custom" section, so the navigation's font does not change.) -->
<ul class="tabNavigation">
<li><a href="#headlines">Headlines</a></li>
<li><a href="#text">Text</a></li>
<li><a href="#hamburgefonstiv">hamburgefonstiv</a></li>
<li><a href="#lowercases">a-z</a></li>
<li><a href="#caps">Words</a></li>
<li><a href="#allcaps">Caps</a></li>
<li><a href="#space">Spacing</a></li>
<li><a href="#quotes">Quotes</a></li>
<li><a href="#layout">Layout</a></li>
<li><a href="#lettering">Lettering</a></li>
<li><a href="#kern">Kern</a></li>
<li><a href="#hinting">Hinting</a></li>
<li><a href="#latin">Latin</a></li>
<li><a href="#world">World Scripts</a></li>
</ul>
<!-- Headlines (Content injected via constants.js) -->
<div id="headlines">
<!-- <div style="white-space: nowrap; overflow: hidden; width: 920px;"> -->
<div></div>
</div>
<!-- Text (Content injected via Javascript) -->
<div id="text" style="width: 97%;">
<div class="textsettingCol1"></div>
<div class="textsettingCol2"></div>
</div>
<!-- quotes text from Vernon Adams http://vernnobile.github.io/webfont-testing/ -->
<div id="quotes">
<div contenteditable="true">
<?php
$steps = array(36, 30, 28, 26, 24, 22, 20, 19, 18, 17, 16, 15, 14, 13, 12);
foreach($steps as $step) {
echo '<p class="sizelabel">'.$step.'</p>';
echo '<p style="font-size: '.$step.'px;">
‘I feel’ ‘ah’ ‘no.’ ‘no?’ ‘if’ ‘cake!’ ‘¿jeff?’ ‘¡si!’ ‘i’ll’<br>
\'I feel\' \'ah\' \'no.\' \'no?\' \'if\' \'cake!\' \'¿jeff?\' \'¡si!\' \'i\'ll\'<br>
,I feel’ ,ah’ ,no.’ ,no?’ ,if’ ,cake!’ ,¿jeff?’ ,¡si!’ ,i’ll’<br>
“I feel” “ah” “no.” “no?” “if” “cake!” “¿jeff?” “¡si!” “i’ll”<br>
"I feel" "ah" "no." "no?" "if" "cake!" "¿jeff?" "¡si!" "i\'ll"<br>
‹I feel› ‹ah› ‹no.› ‹no?› ‹if› ‹cake!› ‹¿jeff?› ‹¡si!› ‹i’ll›<br>
«I feel» «ah» «no.» «no?» «if» «cake!» «¿jeff?» «¡si!» «i’ll»<br>
›I feel‹ ›ah‹ ›no.‹ ›no?‹ ›if‹ ›cake!‹ ›¿jeff?‹ ›¡si!‹ ›i’ll‹<br>
»I feel« »ah« »no.« »no?« »if« »cake!« »¿jeff?« »¡si!« »i’ll«';
}
?>
</div>
</div>
<!-- hamburgefonstiv (Content injected via constants.js) -->
<div id="hamburgefonstiv">
<div ></div>
<p> </p>
<p> </p>
<div>
<div class="textsettingCol1"></div>
<div class="textsettingCol2"></div>
</div>
</div>
<!-- Lowercases a-z (Content injected via constants.js) -->
<div id="lowercases">
<div></div>
<p> </p>
<p> </p>
<div>
<div class="textsettingCol1"></div>
<div class="textsettingCol2"></div>
</div>
</div>
<!-- Caps (Content injected via constants.js) -->
<div id="caps">
<div></div>
</div>
<!-- All Caps (Content injected via constants.js) -->
<div id="allcaps">
<div></div>
</div>
<!-- Spacing and Colour -->
<div id="space">
<?php include("includes/latin/space.php"); ?>
</div>
<!-- Layout -->
<div id="layout">
<?php include("includes/latin/layout.php"); ?>
</div>
<!-- Lettering Sheet -->
<div id="lettering">
<?php include("includes/latin/lettering.php"); ?>
</div>
<!-- Kerning -->
<div id="kern">
<?php include("includes/latin/kerning.php"); ?>
</div>
<!-- Hinting (Content injected via constants.js) -->
<div id="hinting">
<div contenteditable="true">
<p class="sizelabel"><?php echo $_SERVER['HTTP_USER_AGENT'] ?></p><p> </p>
<p class="sizelabel">48px</p>
<p class="hints-lower" style="font-size: 48px;"></p>
<p class="hints-caps" style="font-size: 48px;"></p>
<p class="hints-numbers" style="font-size: 48px;"></p>
<p> </p>
<p class="sizelabel">28px</p>
<p class="hints-lower" style="font-size: 28px;"></p>
<p style="font-size: 28px;">
<span class="hints-caps"></span>
<span class="hints-numbers"></span>
</p><p> </p>
<?php for ($i = 24; $i >= 9; $i--) { ?>
<p class="sizelabel"><?php echo $i; ?>px</p>
<p class="hints-lower" style="font-size: <?php echo $i; ?>px;"></p>
<p style="font-size: <?php echo $i; ?>px;">
<span class="hints-caps"></span>
<span class="hints-numbers"></span>
</p>
<p> </p>
<?php } ?>
</div>
</div>
<!-- Latin -->
<div id="latin">
<?php include("includes/latin/diatrics.php"); ?>
</div>
<!-- Non-Latin -->
<div id="world">
<?php include("includes/latin/world-scripts.php"); ?>
</div>
</div><!-- end tabs -->
</section>
<!-- Footer -->
<?php include("includes/footer.php"); ?>
</body>
</html>