Hanlin Fonts

From MobileRead
Jump to: navigation, search

[edit] How can I use my own fonts?

This tip only applies to files handled by the Cool Reader plugin (.fb2 files in all firmware releases and .txt in LBook firmware)

This hint is taken courtesy of torbich from mobileread.

All you need is to download cr3.zip file (for example, from here), unpack it to the /crengine folder of the SD card, copy your favorite fonts to /fonts folder and edit fb2.css file for your needs. Turn off and on your V3 for the changes to apply.

As an example: Liberation (in addition to these fonts you need to copy to the /crengine/fonts verdana.ttf, verdanab.ttf and verdanai.ttf from your Windows Fonts folder) and fb2.css:

image { text-align: center; text-indent: 0px }
sub { vertical-align: sub; font-size: 70% }
sup { vertical-align: super; font-size: 70% }
poem { margin-top: 0.6em; margin-bottom: 0.6em; text-indent: 0px }
stanza { margin-left: 15%; margin-right: 5%; text-align: left; font-style: italic }
stanza + stanza { margin-top: 0.7em }

a {
  vertical-align: super;
  font-style: normal; font-weight: normal;
  font-size: 80%; color: blue; text-decoration: underline;

p { margin-bottom: 0em }
p + p { margin-top: 0.25em }

empty-line { height: 1em }
strong { font-weight: bold }
emphasis { font-style: italic }

title {
  color: #C00;
  text-align: center; text-indent: 0px;
  margin-top: 0.7em; margin-bottom: 0.5em;
  font-size: 130%; font-weight: bold;
  font-family: "Liberation Serif", serif;
  page-break-before: always; page-break-inside: avoid; page-break-after: avoid;
subtitle {
  text-align: center; text-indent: 0px;
  font-weight: bold; font-style: italic;
  margin-top: 10px; margin-bottom: 10px
description {
  text-align: justify; text-indent: 2em;
  font-family: Arial, sans-serif; font-style: normal;
  font-size: 75%;
body {
  text-align: justify; text-indent: 2em;
  font-family: Verdana, sans-serif; font-size: 75%;
  font-style: normal;
cite {
  text-indent: 0px; text-align: justify;
  font-style: normal; font-weight: normal;
  font-family: "Liberation Sans", sans-serif;
  margin-left: 5%; margin-right: 0px; margin-top: 20px; margin-bottom: 20px;
epigraph {
  margin-left: 20%; margin-right: 2%; margin-top: 15px; margin-bottom: 25px
  text-align: left; text-indent: 0px;
  font-style: normal; font-weight: normal;
  font-size: 85%;
text-author {
  font-weight: bold; font-style: italic;
  margin-left: 25%; text-align: right; margin-top: 0.5em
empty-line { height: 1em }
description { display: block }
title-info { display: block }
genre { display: none }
author { display: none }
book-title { display: none }
annotation { display: block; font-style: italic; text-align: justify; text-indent: 2em }
keywords { display: none }
date { display: block; text-align: left; font-style: italic; margin-top: 0.6em; margin-bottom: 0.6em }
coverpage { display: none }
lang { display: none }
src-lang { display: none }
translator { display: none }
sequence { display: none }
document-info { display: none }
publish-info { display: block }
custom-info { display: none }
Personal tools

MobileRead Networks