doc: Switch to free fonts. Publish fonts with docs.
authorKeith Packard <keithp@keithp.com>
Sun, 1 Nov 2015 12:18:34 +0000 (04:18 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 1 Nov 2015 14:02:14 +0000 (06:02 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
18 files changed:
doc/Makefile
doc/am-fo.xsl
doc/am.css
doc/fonts/FrutigerLTStd-Italic.otf [deleted file]
doc/fonts/FrutigerLTStd-Light.otf [deleted file]
doc/fonts/FrutigerLTStd-LightItalic.otf [deleted file]
doc/fonts/FrutigerLTStd-Roman.otf [deleted file]
doc/fonts/OpenSans-Bold.ttf [new file with mode: 0644]
doc/fonts/OpenSans-BoldItalic.ttf [new file with mode: 0644]
doc/fonts/OpenSans-ExtraBold.ttf [new file with mode: 0644]
doc/fonts/OpenSans-ExtraBoldItalic.ttf [new file with mode: 0644]
doc/fonts/OpenSans-Italic.ttf [new file with mode: 0644]
doc/fonts/OpenSans-Light.ttf [new file with mode: 0644]
doc/fonts/OpenSans-LightItalic.ttf [new file with mode: 0644]
doc/fonts/OpenSans-Regular.ttf [new file with mode: 0644]
doc/fonts/OpenSans-Semibold.ttf [new file with mode: 0644]
doc/fonts/OpenSans-SemiboldItalic.ttf [new file with mode: 0644]
doc/fop.xconf

index 29d3c428ed895322c6ffa961b48823ef29b00a95..0b66a1d18a23dc9adc846ba4402d133528bda252 100644 (file)
@@ -174,6 +174,16 @@ FOP_STYLE=am-fo.xsl
 FOP_XCONF=fop.xconf
 STYLESHEET=am.css
 
+FONTS=\
+       fonts/DejaVuSansMono-BoldOblique.ttf \
+       fonts/DejaVuSansMono-Bold.ttf \
+       fonts/DejaVuSansMono-Oblique.ttf \
+       fonts/DejaVuSansMono.ttf \
+       fonts/OpenSans-Light.ttf \
+       fonts/OpenSans-LightItalic.ttf \
+       fonts/OpenSans-Semibold.ttf \
+       fonts/OpenSans-SemiboldItalic.ttf
+
 TEMPLATES_TMPL=titlepage.templates.tmpl
 
 TEMPLATES_XSL=$(TEMPLATES_TMPL:.tmpl=.xsl)
@@ -212,16 +222,20 @@ micropeak.pdf micropeak.html: micropeak-docinfo.xml $(MICROPEAK_RAW_FILES) $(IMA
 
 install:       all
 
-publish:       $(DOC)
+publish:       $(DOC) $(FONTS)
        cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
+       mkdir -p /home/bdale/web/altusmetrum/AltOS/doc/fonts/
+       cp $(FONTS) /home/bdale/web/altusmetrum/AltOS/doc/fonts/
        (cd /home/bdale/web/altusmetrum ; \
         git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
+        git add /home/bdale/web/altusmetrum/AltOS/doc/fonts/* ; \
         echo "update docs" | \
-        git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
+        git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* /home/bdale/web/altusmetrum/AltOS/doc/fonts/* ; \
         git push)
 
-publish-keithp:        $(DOC)
+publish-keithp:        $(DOC) $(FONTS)
        scp -p $(DOC) keithp.com:~keithp/public_html/altos
+       scp -p $(FONTS) keithp.com:~keithp/public_html/altos/fonts
 
 clean:
        rm -f $(HTML) $(PDF) $(TEMPLATES_XSL) $(RAW_FILES) $(TELEGPS_RAW_FILES) $(MICROPEAK_RAW_FILES)
index 35279f22d1120a9b86cb54316c47ebec645e56a8..2166afd4133171f2f308200397d2e390d5f7c539 100644 (file)
@@ -30,8 +30,8 @@
 <!-- justify, left or right -->
 <xsl:param name="alignment">left</xsl:param>
 
-<xsl:param name="body.font.family" select="'Frutiger LT Std,sans-serif'"/>
-<xsl:param name="title.font.family" select="'Frutiger LT Std,sans-serif'"/>
+<xsl:param name="body.font.family" select="'Open Sans Light,sans-serif'"/>
+<xsl:param name="title.font.family" select="'Open Sans Light,sans-serif'"/>
 <xsl:param name="monospace.font.family" select="'DejaVu Sans Mono,monospace'"/>
 <xsl:param name="body.font.master">12</xsl:param>
 <xsl:param name="body.font.size">
@@ -43,9 +43,6 @@
 <xsl:param name="bridgehead.in.toc" select="0"/>
 <xsl:param name="footer.column.widths">10 1 1</xsl:param>
 
-<!-- overide setting in common.xsl -->
-<xsl:param name="table.frame.border.thickness" select="'2px'"/>
-
 <!-- Default fetches image from Internet (long timeouts) -->
 <xsl:param name="draft.watermark.image" select="''"/>
 
   </xsl:choose>
 </xsl:param>
 
+<xsl:param name="table.frame.border.thickness">0.5pt</xsl:param>
+<xsl:param name="table.frame.border.color">#0080ff</xsl:param>
+<xsl:param name="table.frame.border.thickness">0.5pt</xsl:param>
+<xsl:param name="table.cell.border.thickness">0.5pt</xsl:param>
+<xsl:param name="table.cell.border.color">#0080ff</xsl:param>
+<xsl:param name="table.cell.border.with.css" select="1"/>
 
 <xsl:attribute-set name="copyright.title.properties">
   <xsl:attribute name="font-size">12pt</xsl:attribute>
 </xsl:attribute-set>
 
 <xsl:attribute-set name="revhistory.table.properties">
-  <xsl:attribute name="border">0.5pt solid black</xsl:attribute>
-  <xsl:attribute name="background-color">#EEEEEE</xsl:attribute>
+  <xsl:attribute name="border">0.5pt solid #0080ff</xsl:attribute>
   <xsl:attribute name="width">50%</xsl:attribute>
 </xsl:attribute-set>
 
 <xsl:attribute-set name="revhistory.table.cell.properties">
-  <xsl:attribute name="border">0.5pt solid black</xsl:attribute>
+  <xsl:attribute name="border">0.5pt solid #0080ff</xsl:attribute>
   <xsl:attribute name="font-size">12pt</xsl:attribute>
-  <xsl:attribute name="padding">4pt</xsl:attribute>
+  <xsl:attribute name="padding">2pt</xsl:attribute>
 </xsl:attribute-set>
 
 <xsl:attribute-set name="monospace.properties">
index 2461e11145cbf00e79e9b56aa40ee46d94ea1034..e939245ccb8937494b7ae22a44c4e23b06e6382f 100644 (file)
@@ -2,9 +2,65 @@
   CSS stylesheet for XHTML produced by DocBook XSL stylesheets.
 */
 
+@font-face {
+    font-family: 'Open Sans';
+    src: url('fonts/OpenSans-Regular.ttf');
+    font-weight: normal;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'Open Sans';
+    src: url('fonts/OpenSans-Italic.ttf');
+    font-weight: normal;
+    font-style: italic;
+}
+
+@font-face {
+    font-family: 'Open Sans';
+    src: url('fonts/OpenSans-Semibold.ttf');
+    font-weight: bold;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'Open Sans';
+    src: url('fonts/OpenSans-SemiboldItalic.ttf');
+    font-weight: bold;
+    font-style: italic;
+}
+
+@font-face {
+    font-family: 'DejaVu Sans Mono';
+    src: url('fonts/DejaVuSansMono.ttf');
+    font-weight: normal;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'DejaVu Sans Mono';
+    src: url('fonts/DejaVuSansMono-Oblique.ttf');
+    font-weight: normal;
+    font-style: oblique;
+}
+
+@font-face {
+    font-family: 'DejaVu Sans Mono';
+    src: url('fonts/DejaVuSansMono-Bold.ttf');
+    font-weight: bold;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'DejaVu Sans Mono';
+    src: url('fonts/DejaVuSansMono-BoldOblique.ttf');
+    font-weight: bold;
+    font-style: oblique;
+}
+
 body {
-    font-family: "Frutiger LT Std 45 Light",sans-serif;
-    font-size: 14pt;
+    font-family: "Open Sans",sans-serif;
+    font-size: 12pt;
 }
 
 code, pre {
@@ -41,7 +97,7 @@ a:visited {
 h1, h2, h3, h4, h5, h6
 {
   color: #0080ff;
-  font-family: "Frutiger LT Std 45 Light",sans-serif;
+  font-family: "Open Sans",sans-serif;
 }
 
 div.revhistory table {
@@ -63,7 +119,7 @@ div.sidebar p.title
 {
   font-weight: normal;
   color: #0080ff;
-  font-family: "Frutiger LT Std 45 Light",sans-serif;
+  font-family: "Open Sans",sans-serif;
   margin-bottom: 0.2em;
 }
 
@@ -108,8 +164,8 @@ div.footnotes hr {
 }
 
 div.navheader th, div.navheader td, div.navfooter td {
-    font-family: "Frutiger LT Std 45 Light",sans-serif;
-    font-size: 14pt;
+    font-family: "Open Sans",sans-serif;
+    font-size: 12pt;
     font-weight: normal;
     color: #0080ff;
 }
@@ -244,7 +300,6 @@ div.revhistory table, th, td, tr {
 }
 div.revhistory th {
   color: #0080ff;
-  font-family: "Frutiger LT Std 45 Light",sans-serif;
 }
 
 /* Keep TOC and index lines close together. */
diff --git a/doc/fonts/FrutigerLTStd-Italic.otf b/doc/fonts/FrutigerLTStd-Italic.otf
deleted file mode 100644 (file)
index c02ecd0..0000000
Binary files a/doc/fonts/FrutigerLTStd-Italic.otf and /dev/null differ
diff --git a/doc/fonts/FrutigerLTStd-Light.otf b/doc/fonts/FrutigerLTStd-Light.otf
deleted file mode 100644 (file)
index 6d013a6..0000000
Binary files a/doc/fonts/FrutigerLTStd-Light.otf and /dev/null differ
diff --git a/doc/fonts/FrutigerLTStd-LightItalic.otf b/doc/fonts/FrutigerLTStd-LightItalic.otf
deleted file mode 100644 (file)
index 7023777..0000000
Binary files a/doc/fonts/FrutigerLTStd-LightItalic.otf and /dev/null differ
diff --git a/doc/fonts/FrutigerLTStd-Roman.otf b/doc/fonts/FrutigerLTStd-Roman.otf
deleted file mode 100644 (file)
index a6d6edb..0000000
Binary files a/doc/fonts/FrutigerLTStd-Roman.otf and /dev/null differ
diff --git a/doc/fonts/OpenSans-Bold.ttf b/doc/fonts/OpenSans-Bold.ttf
new file mode 100644 (file)
index 0000000..fd79d43
Binary files /dev/null and b/doc/fonts/OpenSans-Bold.ttf differ
diff --git a/doc/fonts/OpenSans-BoldItalic.ttf b/doc/fonts/OpenSans-BoldItalic.ttf
new file mode 100644 (file)
index 0000000..9bc8009
Binary files /dev/null and b/doc/fonts/OpenSans-BoldItalic.ttf differ
diff --git a/doc/fonts/OpenSans-ExtraBold.ttf b/doc/fonts/OpenSans-ExtraBold.ttf
new file mode 100644 (file)
index 0000000..21f6f84
Binary files /dev/null and b/doc/fonts/OpenSans-ExtraBold.ttf differ
diff --git a/doc/fonts/OpenSans-ExtraBoldItalic.ttf b/doc/fonts/OpenSans-ExtraBoldItalic.ttf
new file mode 100644 (file)
index 0000000..31cb688
Binary files /dev/null and b/doc/fonts/OpenSans-ExtraBoldItalic.ttf differ
diff --git a/doc/fonts/OpenSans-Italic.ttf b/doc/fonts/OpenSans-Italic.ttf
new file mode 100644 (file)
index 0000000..c90da48
Binary files /dev/null and b/doc/fonts/OpenSans-Italic.ttf differ
diff --git a/doc/fonts/OpenSans-Light.ttf b/doc/fonts/OpenSans-Light.ttf
new file mode 100644 (file)
index 0000000..0d38189
Binary files /dev/null and b/doc/fonts/OpenSans-Light.ttf differ
diff --git a/doc/fonts/OpenSans-LightItalic.ttf b/doc/fonts/OpenSans-LightItalic.ttf
new file mode 100644 (file)
index 0000000..68299c4
Binary files /dev/null and b/doc/fonts/OpenSans-LightItalic.ttf differ
diff --git a/doc/fonts/OpenSans-Regular.ttf b/doc/fonts/OpenSans-Regular.ttf
new file mode 100644 (file)
index 0000000..db43334
Binary files /dev/null and b/doc/fonts/OpenSans-Regular.ttf differ
diff --git a/doc/fonts/OpenSans-Semibold.ttf b/doc/fonts/OpenSans-Semibold.ttf
new file mode 100644 (file)
index 0000000..1a7679e
Binary files /dev/null and b/doc/fonts/OpenSans-Semibold.ttf differ
diff --git a/doc/fonts/OpenSans-SemiboldItalic.ttf b/doc/fonts/OpenSans-SemiboldItalic.ttf
new file mode 100644 (file)
index 0000000..59b6d16
Binary files /dev/null and b/doc/fonts/OpenSans-SemiboldItalic.ttf differ
index 0f470ffd33a60564e1ca6e1543e6d7ad4c2d268a..9ac4282048f9d65b4b791f2bd7809f197a351795 100644 (file)
@@ -38,20 +38,20 @@ the location of this file.
 
       <fonts>
         <!-- embedded fonts -->
-       <font embed-url="fonts/FrutigerLTStd-Light.otf">
-         <font-triplet name="Frutiger LT Std" style="normal"
+       <font embed-url="fonts/OpenSans-Light.ttf">
+         <font-triplet name="Open Sans Light" style="normal"
                        weight="normal"/>
        </font>
-       <font embed-url="fonts/FrutigerLTStd-LightItalic.otf">
-         <font-triplet name="Frutiger LT Std" style="italic"
+       <font embed-url="fonts/OpenSans-LightItalic.ttf">
+         <font-triplet name="Open Sans Light" style="italic"
                        weight="normal"/>
        </font>
-       <font embed-url="fonts/FrutigerLTStd-Roman.otf">
-         <font-triplet name="Frutiger LT Std" style="normal"
+       <font embed-url="fonts/OpenSans-Semibold.ttf">
+         <font-triplet name="Open Sans Light" style="normal"
                        weight="bold"/>
        </font>
-       <font embed-url="fonts/FrutigerLTStd-Italic.otf">
-         <font-triplet name="Frutiger LT Std" style="italic"
+       <font embed-url="fonts/OpenSans-SemiboldItalic.ttf">
+         <font-triplet name="Open Sans Light" style="italic"
                        weight="bold"/>
        </font>