From 85c352faf8c87ffc2942f30a81ab7f7a76428a1b Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 4 May 2012 09:17:25 +0200 Subject: [PATCH] [doc] Add CSS for HTML output. --- doc/Makefile.am | 6 +-- doc/ttfautohint-1.pandoc | 2 +- doc/ttfautohint.css | 113 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 4 deletions(-) create mode 100644 doc/ttfautohint.css diff --git a/doc/Makefile.am b/doc/Makefile.am index c9ceebf..ed26f34 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -23,6 +23,7 @@ endif if WITH_DOC nobase_dist_doc_DATA = $(DOCSRC) \ + ttfautohint.css \ $(DOCIMAGES) \ $(DOCGEN) endif @@ -30,9 +31,8 @@ endif ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@ -# XXX embed CSS data -ttfautohint.html: $(DOCSRC) $(DOCIMAGES) - $(PANDOC) --toc -S -s -o $@ $(DOCSRC) +ttfautohint.html: $(DOCSRC) $(DOCIMAGES) ttfautohint.css + $(PANDOC) --toc -H ttfautohint.css -S -s -o $@ $(DOCSRC) # XXX write template ttfautohint.pdf: $(DOCSRC) $(DOCIMAGES) diff --git a/doc/ttfautohint-1.pandoc b/doc/ttfautohint-1.pandoc index a245efc..506671e 100644 --- a/doc/ttfautohint-1.pandoc +++ b/doc/ttfautohint-1.pandoc @@ -201,7 +201,7 @@ subglyph 'A' as the base and 'grave' as its accent. After processing with ttfautohint it consists of three subglyphs: '.ttfautohint', 'A', and 'grave' (in this order). - bytecode of action + Bytecode of Action ------------- -------- .ttfautohint increase `cvtl_is_subglyph` (now: 1) A do nothing because `cvtl_is_subglyph` > 0 diff --git a/doc/ttfautohint.css b/doc/ttfautohint.css new file mode 100644 index 0000000..bb39802 --- /dev/null +++ b/doc/ttfautohint.css @@ -0,0 +1,113 @@ + -- 2.11.4.GIT