shithub: freetype+ttf2subf

Download patch

ref: a5ad26afea90e89946a37bffe2c1094d99697a53
parent: ba67c619726e4ec0eeff7a669c0509c848c81d23
author: Werner Lemberg <[email protected]>
date: Thu Nov 27 05:52:24 EST 2014

* src/tools/docmaker/tohtml.py: Replace <font> with CSS.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-11-27  Werner Lemberg  <[email protected]>
 
+	* src/tools/docmaker/tohtml.py: Replace <font> with CSS.
+
+2014-11-27  Werner Lemberg  <[email protected]>
+
 	* src/tools/docmaker/tohtml.py: Center <table> with CSS.
 
 2014-11-27  Werner Lemberg  <[email protected]>
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -64,6 +64,10 @@
   td { padding: 0 0.5em 0 0.5em; }
   td.left { padding: 0 0.5em 0 0.5em;
             text-align: left; }
+  td.small { padding: 0 0.5em 0 0.5em;
+             font-size: 83% }
+  td.tiny { padding: 0 0.5em 0 0.5em;
+            font-size: 69% }
 
   ul.empty { list-style-type: none; }
 </style>
@@ -72,33 +76,33 @@
 """
 
 html_header_3 = """
-<table class="center"><tr><td><font size="-1">[<a href="\
+<table class="center"><tr><td class="small">[<a href="\
 """
 
 html_header_3i = """
 <table class="center"><tr><td width="100%"></td>
-<td><font size="-1">[<a href="\
+<td class="small">[<a href="\
 """
 
 html_header_4 = """\
-">Index</a>]</font></td>
+">Index</a>]</td>
 <td width="100%"></td>
-<td><font size="-1">[<a href="\
+<td class="small">[<a href="\
 """
 
 html_header_5 = """\
-">TOC</a>]</font></td></tr></table>
+">TOC</a>]</td></tr></table>
 <h1>\
 """
 
 html_header_5t = """\
-">Index</a>]</font></td>
+">Index</a>]</td>
 <td width="100%"></td></tr></table>
 <h1>\
 """
 
 html_header_6 = """\
- API Reference</h1></center>
+ API Reference</h1>
 """
 
 
@@ -125,15 +129,15 @@
 block_footer_start  = """\
 </td></tr></table>
 <hr width="75%">
-<table class="center" width="75%"><tr><td><font size="-2">[<a href="\
+<table class="center" width="75%"><tr><td class="small">[<a href="\
 """
 block_footer_middle = """\
-">Index</a>]</font></td>
+">Index</a>]</td>
 <td width="100%"></td>
-<td><font size="-2">[<a href="\
+<td class="tiny">[<a href="\
 """
 block_footer_end    = """\
-">TOC</a>]</font></td></tr></table>
+">TOC</a>]</td></tr></table>
 """
 
 # Description header/footer.
@@ -162,19 +166,19 @@
 index_footer_start = """\
 <hr>
 <table><tr><td width="100%"></td>
-<td><font size="-2">[<a href="\
+<td class="tiny">[<a href="\
 """
 index_footer_end = """\
-">TOC</a>]</font></td></tr></table>
+">TOC</a>]</td></tr></table>
 """
 
 # TOC footer.
 toc_footer_start = """\
 <hr>
-<table><tr><td><font size="-2">[<a href="\
+<table><tr><td class="tiny">[<a href="\
 """
 toc_footer_end = """\
-">Index</a>]</font></td>
+">Index</a>]</td>
 <td width="100%"></td>
 </tr></table>
 """