Forum How do I...?

Get Font to be used

jim_albright
I am trying to use font: Charis SIL, a serif font, but it looks like a sans serif font is being used, Andika?
What am I doing wrong.

Jim Albright


In font.css I added “Charis SIL”

@font-face {
font-family: serif;
src: local("Times New Roman")
}
@font-face {
font-family: serif;
src: local("Charis SIL")
}

In log-current attached you can see the attempt to use Charis SIL (this is a serif font)

In my css
p {font-size: 8pt;
font-family: "Claris SIL";
line-height: 9pt;
}

@page {
marks: crop cross ;
size: 3.5in 5.25in portrait;
font-size: 8pt;
font-family: "Claris SIL";
line-height: 9pt;
/* set font for whole project 8 on 9*/

@footnotes
{
border-top: thin solid black;
padding: 0.3em 0;
margin-top: 0.6pc;
margin-left: 2pc;
}
}

Input file:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>- Kuna, San Blas - Bible -Panama 2014 (DBL -2014)</title> </head>
<body>
<div class="Introduction">
<p class="running_header_text">Proverbios</p>
<p class="Major_Title_Level2">PROVERBIOS</p>
<p class="Introduction_Major_Title_Level2">GEBE-SOGLENAID</p>
<p class="Introduction_Major_Title_Level1">Garda-nug</p>
<p class="Introduction_Paragraph"> <span class="Emphasis">Binsaed-Nuegan-Garda.</span> We-gardade, Hebreo-gayaba, <span class="Emphasis">mashalʼye</span> bileged. A sogleged, “Binsaed-Nuegan-nikadye.” Soglebalid, “ebo-wilubsaedye,” “ibmar-soglegedye,” degi, “burbar-ibmar-soglegedye.”</p>
<p class="Introduction_Section_Head_Level1">Binsaed-Nuegan-Gardagi weyob sunmaklenaid</p>
<p class="Introduction_Paragraph">Binsaed-Nuegan-Gardagi binsaed-nuegana narmaklegar mamaid. We-gardagi igar-akar-akar egi sunmaklenaid: Binsaed-nue-nikadaedgi, Binsaed-Nuegan-soglemaladgi, degine, namaklemalad nanaibalid. We-igarbali, Israel-dulemar Binsaed-Nuegan amidii gusmalad.</p>
...

Jim Albright
Wycliffe Bible Translators

  1. log-current.txt6.3 kB
    debug file
  2. screen shot of wrong font.PNG44.8 kB
    Looks like Andika (sans serif) here
mikeday
Seems to be a mismatch between Charis and Claris! :)
jim_albright
Thank you!!!

Jim Albright
Wycliffe Bible Translators