View Single Post
Old 08-15-2022, 02:58 PM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,488
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
But where are those commented font names coming from?
The file should start (but doesn't always) as an MS Word or LO Writer document with Paragraph Styles (translate to <p class="whatever-head" ...> or <hn class="whatever-body"> where n is the heading level.
Then the CSS has .whatever-etc{ ... } where ... is the font name, size, style, paddings, margin etc in the original Word docx paragraph, heading or character styles. Character styles become <span class="somecharstyle" etc>text</span> in a <p> paragraph </p>
Naked tags will use outer <div> or <body> styles.
CSS = Cascading Style Sheets
Quoth is offline   Reply With Quote