FANDOM


Following describes Advanced Comic Book Format specifications. Current released version is 1.0. This section contains proposed changes for version 1.1

Stylesheet declaration can be specified in two ways:

  • using link to external css document
  <?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/css" href="default.css"?>
  <ACBF xmlns="http://www.fictionbook-lib.org/xml/acbf/1.0">
      ...
  </ACBF>
  • or it can be embedded inside <style> element
  <?xml version="1.0" encoding="utf-8"?> 
  <ACBF xmlns="http://www.fictionbook-lib.org/xml/acbf/1.1"> 
   <style type="text/css">
     p {font-family: DejaVuSans, Arial, Sans; 
        font-style: normal;} 
     ...
   </style>
  ...
  </ACBF>

If no styles are defined as part of the document viewer application will render text layers with its defined default styles.

Below is an example of CSS document defining all possible text-layer elements and attributes that can be styled.

* {color: #000000;}
text-area[inverted="True"] {color: #FFFFFF;}
P {font-family: DejaVuSans, Arial, Sans; 
   font-style: normal;}
emphasis {font-family: DejaVuSans, Arial, Sans; 
          font-style: oblique; 
          font-weight: bold;} 
strong {font-family: DejaVuSans, Arial, Sans; 
        font-style: normal; 
        font-weight: bold;} 
code {font-family: DejaVuSansMono, "Courier New", Mono; 
      font-style: normal;}
handwriting {font-family: "Arizonia" ;
             font-style: normal;}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.