add Sawasdee.woff web font v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 22 Sep 2019 01:36:35 +0200
branchv_0
changeset 30 841bec790da8
parent 29 5ed5b68408e4
child 31 43feb77ffcfb
add Sawasdee.woff web font licensed under GPLv2+ with Font exception + switch to sans-serif 18px
Makefile
templates/Sawasdee.woff
templates/ssm.xhtml.xsl
templates/style.css
--- a/Makefile	Sun Sep 22 00:34:31 2019 +0200
+++ b/Makefile	Sun Sep 22 01:36:35 2019 +0200
@@ -22,6 +22,7 @@
 	mkdir -p build
 	xsltproc --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml
 	cp templates/*.css build
+	cp templates/*.woff build
 
 # TODO: better line wrapping
 txt:
Binary file templates/Sawasdee.woff has changed
--- a/templates/ssm.xhtml.xsl	Sun Sep 22 00:34:31 2019 +0200
+++ b/templates/ssm.xhtml.xsl	Sun Sep 22 01:36:35 2019 +0200
@@ -87,10 +87,10 @@
 	
 	
 	<xsl:template match="m:item">
-		<li>
+		<li id="{m:id}">
 			<xsl:apply-templates select="m:text"/>
 			<xsl:text> </xsl:text>
-			<a href="#{m:id}" id="{m:id}" class="anchor">#</a>
+			<a href="#{m:id}" class="anchor">#</a>
 			<xsl:if test="m:item">
 				<ul>
 					<xsl:apply-templates select="m:item"/>
--- a/templates/style.css	Sun Sep 22 00:34:31 2019 +0200
+++ b/templates/style.css	Sun Sep 22 01:36:35 2019 +0200
@@ -1,6 +1,11 @@
+@font-face {
+	font-family: "Sawasdee";
+	src: url("Sawasdee.woff");
+}
+
 body {
-	font-family: FreeSerif;
-	font-size:  20px;
+	font-family: sans-serif;
+	font-size:  18px;
 	background-color: white;
 	color: black;
 	text-align: center;