Advanced Comic Book Format Wiki

Following describes Advanced Comic Book Format specifications. Current released version is 1.1, proposed changes for version 1.2 are highlighted./new in 1.2/

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.acbf.info/xml/acbf/1.1">
      ...
  </ACBF>
  • or it can be embedded inside <style> element
  <?xml version="1.0" encoding="utf-8"?> 
  <ACBF xmlns="http://www.acbf.info/xml/acbf/1.1"> 
   <style type="text/css">
     text-area {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;}
text-area[type="commentary"] {color: #AAAAAA;}
text-area {font-family: "ComicNeue-Regular", "Dejavu Sans", Arial, Sans;
           font-style: normal;
           font-stretch: condensed}
text-area[type="code"] {font-family: "Dejavu Sans Mono", Mono, Sans;
                        font-style: normal;}
text-area[type="letter"] {font-family: "Arizonia" ;
                          font-style: normal;}
text-area[type="commentary"] {font-family: DejaVuSans, Mono, Sans;
                              font-style: normal;}
text-area[type="formal"] {font-family: DejaVuSans, Mono, Sans;
                          font-style: normal;}
text-area[type="heading"] {font-family: DejaVuSans, Mono, Sans;
                           font-style: normal;}
text-area[type="audio"] {font-family: DejaVuSans, Mono, Sans;
                         font-style: normal;}
text-area[type="thought"] {font-family: DejaVuSans, Mono, Sans;
                           font-style: normal;}
text-area[type="sign"] {font-family: DejaVuSans, Mono, 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;}