css_font_selection.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
  5. </head>
  6. <body>
  7. <h1>Font Selection</h1>
  8. <p>Available font-family:</p>
  9. <ul>
  10. <li>serif (default) (Aliases: times, times-roman)</li>
  11. <li>sans-serif (Aliases: helvetica)</li>
  12. <li>monospace (Aliases: fixed, courier)</li>
  13. </ul>
  14. <p>Available font-style:</p>
  15. <ul>
  16. <li>normal (default)</li>
  17. <li>italic</li>
  18. </ul>
  19. <p>Available font-weight:</p>
  20. <ul>
  21. <li>normal (default)</li>
  22. <li>bold</li>
  23. </ul>
  24. <p>Other variations are falling back to a combination of the above</p>
  25. <p>Special fonts</p>
  26. <ul>
  27. <li>symbol</li>
  28. <li>zapfdingbats</li>
  29. </ul>
  30. <h2>Font selection</h2>
  31. <p style="font-family:sans-serif;">abcdefghijk ABCDEFGHIJK - (Helvetica) - (sans-serif) - sans-serif</p>
  32. <p style="font-family:helvetica;">abcdefghijk ABCDEFGHIJK - (Helvetica) - (sans-serif) - helvetica</p>
  33. <p style="font-family:serif;">abcdefghijk ABCDEFGHIJK - (Times-Roman) - (serif) - serif</p>
  34. <p style="font-family:times;">abcdefghijk ABCDEFGHIJK - (Times-Roman) - (serif) - times</p>
  35. <p style="font-family:times-roman;">abcdefghijk ABCDEFGHIJK - (Times-Roman) - (serif) - times-roman</p>
  36. <p style="font-family:monospace;">abcdefghijk ABCDEFGHIJK - (Courier)- (monospace) - mononospace</p>
  37. <p style="font-family:fixed;">abcdefghijk ABCDEFGHIJK - (Courier)- (monospace) - fixed</p>
  38. <p style="font-family:courier;">abcdefghijk ABCDEFGHIJK - (Courier)- (monospace) - courier</p>
  39. <h2>Font search path</h2>
  40. <p style="font-family:dummy1,dummy2;">abcdefghijk ABCDEFGHIJK - serif - "font-family:dummy1,dummy2;"</p>
  41. <p style="font-family:dummy1,dummy2,sans-serif;">abcdefghijk ABCDEFGHIJK - sans-serif - "font-family:dummy1,dummy2,sans-serif;"</p>
  42. <p style="font-family:sans-serif,dummy1,dummy2;">abcdefghijk ABCDEFGHIJK - sans-serif - "font-family:sans-serif,dummy1,dummy2;"</p>
  43. <p style="font-family:sans-serif,courier;">abcdefghijk ABCDEFGHIJK - sans-serif - "font-family:sans-serif,courier;"</p>
  44. <h2>Font variations</h2>
  45. <p style="font-style:normal; font-weight:normal;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:normal;"</p>
  46. <p style="font-style:normal; font-weight:lighter;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:lighter;"</p>
  47. <p style="font-style:normal; font-weight:100;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:100;"</p>
  48. <p style="font-style:normal; font-weight:200;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:200;"</p>
  49. <p style="font-style:normal; font-weight:300;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:300;"</p>
  50. <p style="font-style:normal; font-weight:400;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:400;"</p>
  51. <p style="font-style:normal; font-weight:500;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-style:normal; font-weight:500;"</p>
  52. <p style="font-style:normal; font-weight:600;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:600;"</p>
  53. <p style="font-style:normal; font-weight:700;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:700;"</p>
  54. <p style="font-style:normal; font-weight:800;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:800;"</p>
  55. <p style="font-style:normal; font-weight:900;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:900;"</p>
  56. <p style="font-style:normal; font-weight:bold;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:bold;"</p>
  57. <p style="font-style:normal; font-weight:bolder;">abcdefghijk ABCDEFGHIJK - serif - bold - "font-style:normal; font-weight:bolder;"</p>
  58. <p style="font-style:italic; font-weight:normal;">abcdefghijk ABCDEFGHIJK - serif - italic - "font-style:italic; font-weight:normal;"</p>
  59. <p style="font-style:oblique; font-weight:normal;">abcdefghijk ABCDEFGHIJK - serif - italic - "font-style:oblique; font-weight:normal;"</p>
  60. <p style="font-style:italic; font-weight:bold;">abcdefghijk ABCDEFGHIJK - serif - bold_italic - "font-style:italic; font-weight:bold;"</p>
  61. <p style="font-variant:small-caps; font-style:normal; font-weight:normal;">abcdefghijk ABCDEFGHIJK - serif - normal - "font-variant:small-caps; font-style:normal; font-weight:normal;"</p>
  62. <h2>Font size</h2>
  63. <p style="font-size:xx-small">abcdefghijk ABCDEFGHIJK - xx-small</p>
  64. <p style="font-size:x-small">abcdefghijk ABCDEFGHIJK - x-small</p>
  65. <p style="font-size:small">abcdefghijk ABCDEFGHIJK - small</p>
  66. <p style="font-size:medium">abcdefghijk ABCDEFGHIJK - medium</p>
  67. <p style="font-size:large">abcdefghijk ABCDEFGHIJK - large</p>
  68. <p style="font-size:x-large">abcdefghijk ABCDEFGHIJK - x-large</p>
  69. <p style="font-size:xx-large">abcdefghijk ABCDEFGHIJK - xx-large</p>
  70. <p style="font-size:10pt">abcdefghijk ABCDEFGHIJK - 10pt</p>
  71. <p style="font-size:12pt">abcdefghijk ABCDEFGHIJK - 12pt</p>
  72. <p style="font-size:14pt">abcdefghijk ABCDEFGHIJK - l4pt</p>
  73. <p style="font-size:smaller">abcdefghijk ABCDEFGHIJK - smaller</p>
  74. <p style="font-size:larger">abcdefghijk ABCDEFGHIJK - larger</p>
  75. <h2>Line height</h2>
  76. <p style="line-height:100%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 100%</p>
  77. <p style="line-height:120%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 120%</p>
  78. <p style="line-height:140%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 140%</p>
  79. <p style="font-size:xx-large;line-height:100%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 100%</p>
  80. <p style="font-size:xx-large;line-height:120%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 120%</p>
  81. <p style="font-size:xx-large;line-height:140%">abcdefghijk ABCDEFGHIJK<br>abcdefghijk ABCDEFGHIJK 140%</p>
  82. <h2>Font combined setting</h2>
  83. <p style="font:italic small-caps bold 14pt/160% sans-serif;">style="font:italic small-caps bold 14pt/160% sans-serif;"<br>(all attributes)</p>
  84. <p style="font:normal 10pt/160% sans-serif;">style="font:normal 10pt/160% sans-serif;"<br>(partial attributes)</p>
  85. <p style="font:700 10pt/160% sans-serif;">style="font:700 10pt/160% sans-serif;"<br>(partial attributes)</p>
  86. <p style="font:small sans-serif;">style="font:small sans-serif;"<br>(partial attributes)</p>
  87. <div style="font:italic small-caps bold 14pt/160% sans-serif;">
  88. <p>inherit style="font:italic small-caps bold 14pt/160% sans-serif;" :</p>
  89. <p style="font:small sans-serif;">
  90. style="font:small sans-serif;"<br>
  91. (partial attributes - reset inherited)<br>
  92. <span style="font-weight:bold;">style="font-weight:bold;"<br>
  93. (partial overwrite)</span><br>
  94. (resume partial attributes)
  95. </p>
  96. <p>continue inherited</p>
  97. </div>
  98. </body>
  99. </html>