vf_vs_v2_138_real_world.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <html>
  2. <head>
  3. <meta charset="utf-8"/>
  4. <style>
  5. html{
  6. font-family: sans-serif;
  7. font-feature-settings: 'kern' off;
  8. }
  9. @font-face {font-family: 'Roboto';
  10. src: url('./v2_138_fonts/Roboto-Thin.ttf') format('truetype');
  11. font-weight: 100;
  12. font-stretch: normal;
  13. font-style: normal;}
  14. @font-face {font-family: 'Roboto';
  15. src: url('./v2_138_fonts/Roboto-ThinItalic.ttf') format('truetype');
  16. font-weight: 100;
  17. font-stretch: normal;
  18. font-style: italic;}
  19. @font-face {font-family: 'Roboto';
  20. src: url('./v2_138_fonts/Roboto-Light.ttf') format('truetype');
  21. font-weight: 300;
  22. font-stretch: normal;
  23. font-style: normal;}
  24. @font-face {font-family: 'Roboto';
  25. src: url('./v2_138_fonts/Roboto-LightItalic.ttf') format('truetype');
  26. font-weight: 300;
  27. font-stretch: normal;
  28. font-style: italic;}
  29. @font-face {font-family: 'Roboto';
  30. src: url('./v2_138_fonts/Roboto-Italic.ttf') format('truetype');
  31. font-weight: 400;
  32. font-stretch: normal;
  33. font-style: italic;}
  34. @font-face {font-family: 'Roboto';
  35. src: url('./v2_138_fonts/Roboto-Regular.ttf') format('truetype');
  36. font-weight: 400;
  37. font-stretch: normal;
  38. font-style: normal;}
  39. @font-face {font-family: 'Roboto';
  40. src: url('./v2_138_fonts/Roboto-Medium.ttf') format('truetype');
  41. font-weight: 500;
  42. font-stretch: normal;
  43. font-style: normal;}
  44. @font-face {font-family: 'Roboto';
  45. src: url('./v2_138_fonts/Roboto-MediumItalic.ttf') format('truetype');
  46. font-weight: 500;
  47. font-stretch: normal;
  48. font-style: italic;}
  49. @font-face {font-family: 'Roboto';
  50. src: url('./v2_138_fonts/Roboto-Bold.ttf') format('truetype');
  51. font-weight: 700;
  52. font-stretch: normal;
  53. font-style: normal;}
  54. @font-face {font-family: 'Roboto';
  55. src: url('./v2_138_fonts/Roboto-BoldItalic.ttf') format('truetype');
  56. font-weight: 700;
  57. font-stretch: normal;
  58. font-style: italic;}
  59. @font-face {font-family: 'Roboto';
  60. src: url('./v2_138_fonts/Roboto-Black.ttf') format('truetype');
  61. font-weight: 900;
  62. font-stretch: normal;
  63. font-style: normal;}
  64. @font-face {font-family: 'Roboto';
  65. src: url('./v2_138_fonts/Roboto-BlackItalic.ttf') format('truetype');
  66. font-weight: 900;
  67. font-stretch: normal;
  68. font-style: italic;}
  69. @font-face {font-family: 'Roboto';
  70. src: url('./v2_138_fonts/RobotoCondensed-Bold.ttf') format('truetype');
  71. font-weight: 700;
  72. font-stretch: condensed;
  73. font-style: normal;}
  74. @font-face {font-family: 'Roboto';
  75. src: url('./v2_138_fonts/RobotoCondensed-BoldItalic.ttf') format('truetype');
  76. font-weight: 700;
  77. font-stretch: condensed;
  78. font-style: italic;}
  79. @font-face {font-family: 'Roboto';
  80. src: url('./v2_138_fonts/RobotoCondensed-Medium.ttf') format('truetype');
  81. font-weight: 500;
  82. font-stretch: condensed;
  83. font-style: normal;}
  84. @font-face {font-family: 'Roboto';
  85. src: url('./v2_138_fonts/RobotoCondensed-MediumItalic.ttf') format('truetype');
  86. font-weight: 500;
  87. font-stretch: condensed;
  88. font-style: italic;}
  89. @font-face {font-family: 'Roboto';
  90. src: url('./v2_138_fonts/RobotoCondensed-Italic.ttf') format('truetype');
  91. font-weight: 400;
  92. font-stretch: condensed;
  93. font-style: italic;}
  94. @font-face {font-family: 'Roboto';
  95. src: url('./v2_138_fonts/RobotoCondensed-Light.ttf') format('truetype');
  96. font-weight: 300;
  97. font-stretch: condensed;
  98. font-style: normal;}
  99. @font-face {font-family: 'Roboto';
  100. src: url('./v2_138_fonts/RobotoCondensed-LightItalic.ttf') format('truetype');
  101. font-weight: 300;
  102. font-stretch: condensed;
  103. font-style: italic;}
  104. @font-face {font-family: 'Roboto';
  105. src: url('./v2_138_fonts/RobotoCondensed-Regular.ttf') format('truetype');
  106. font-weight: 400;
  107. font-stretch: condensed;
  108. font-style: normal;}
  109. @font-face {font-family: 'Roboto-VF';
  110. src: url('../../Roboto-min-VF.ttf') format('truetype');
  111. font-weight: 1 999;
  112. font-style: oblique 0deg 12deg;
  113. font-stretch: 75% 100%;}
  114. .RobotoNormal{
  115. position: absolute;
  116. font-family: Roboto;
  117. font-size: 48px;
  118. top: 150px;
  119. }
  120. .RobotoVF{
  121. position: absolute;
  122. font-family: Roboto-VF;
  123. font-size: 48px;
  124. top: 150px;
  125. color: cyan;
  126. }
  127. .ctrl{
  128. position: fixed;
  129. right: 0;
  130. top: 0;
  131. z-index:100;
  132. color: white;
  133. }
  134. #container{
  135. font-weight: 250;
  136. }
  137. .info{
  138. position: fixed;
  139. }
  140. </style>
  141. </head>
  142. <body>
  143. <script>
  144. function weightChange(weight) {
  145. var d = document.getElementById("container-weight");
  146. d.setAttribute('style', 'font-weight:'+ weight)
  147. }
  148. function styleChange(style) {
  149. var d = document.getElementById("container-style");
  150. d.setAttribute('style', 'font-style:' + style)
  151. }
  152. function widthChange(width) {
  153. var d = document.getElementById("container-width");
  154. d.setAttribute('style', 'font-stretch:' + width)
  155. }
  156. </script>
  157. <div>
  158. <h1>varLib VF vs v2.138 unhinted</h1>
  159. <h3>Static fonts, <span style="color: cyan">Variable Font Instances</span> </h3>
  160. <div class='ctrl'>
  161. <select id="w" onchange="weightChange(this.value)">
  162. <option value="250">250</option>
  163. <option value="300">300</option>
  164. <option value="400">400</option>
  165. <option value="500">500</option>
  166. <option value="700">700</option>
  167. <option value="900">900</option>
  168. </select>
  169. <select id="s" onchange="styleChange(this.value)">
  170. <option value="normal">normal</option>
  171. <option value="italic">italic</option>
  172. </select>
  173. <select id="c" onchange="widthChange(this.value)">
  174. <option value="normal">normal</option>
  175. <option value="condensed">condensed</option>
  176. </select>
  177. </div>
  178. </div>
  179. </div>
  180. <div id='container-style' style='font-style: normal'>
  181. <div id='container-weight' style='font-weight: 250'>
  182. <div id='container-width' style='font-stretch: normal'>
  183. <div class="RobotoNormal">
  184. <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.</p>
  185. <p>I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.</p>
  186. <p>When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath</p>
  187. </div>
  188. <div class="RobotoVF">
  189. <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.</p>
  190. <p>I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.</p>
  191. <p>When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath</p>
  192. </div>
  193. </div></div>
  194. </div>
  195. </body>
  196. </html>