View Single Post
Old 11-27-2011, 07:12 AM   #22
seabee
Connoisseur
seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.
 
seabee's Avatar
 
Posts: 79
Karma: 40957
Join Date: Aug 2011
Location: Paris, France
Device: Kobo Mini
Thumbs down Tests

I tried to make an EPUB containing the following stylesheet and paragraphs referencing the corresponding classes (<p class="a">ABC...</p>...) with Sigil, but only the first one (class = "a") was successful, all the others falling back to the default PRS-T1 serif font. I'm sure that /system/fonts/FrutigerNeueLTW1G-Regular.otf exist on the PRS-T1 because I extracted it with ebook_msc.exe (command line: ebook_msc.exe name "PRS-T1" get /system/fonts/FrutigerNeueLTW1G-Regular.otf FrutigerNeueLTW1G-Regular.otf) and embedded it in my test ebook in Fonts subdirectory (in Sigil, at the same level as the Styles directory that referenced it, hence the ../Fonts in MyFont1 definition).
I added a fonts directory containing comic.ttf on my PRS-T1 (=> /mnt/sdcard/fonts/comic.ttf references)
Actually, all references outside of the ebook itself seems to fail

The PRS-T1 have the following font files in /system/fonts folder:
AmasisMTW1G-Bold.otf
AmasisMTW1G-BoldItalic.otf
AmasisMTW1G-Italic.otf
AmasisMTW1G.otf
FrutigerNeueLTW1G-Bold.otf
FrutigerNeueLTW1G-BoldIt.otf
FrutigerNeueLTW1G-Italic.otf
FrutigerNeueLTW1G-Regular.otf
HelveticaMonospacedW1G-Bd.otf
HelveticaMonospacedW1G-BdIt.otf
HelveticaMonospacedW1G-It.otf
HelveticaMonospacedW1G-Rg.otf
PalatinoNovaW1G-Bold.otf
PalatinoNovaW1G-BoldItalic.otf
PalatinoNovaW1G-Italic.otf
PalatinoNovaW1G-Regular.otf
ReallyNo2LTW1G-Bold.otf
ReallyNo2LTW1G-BoldItalic.otf
ReallyNo2LTW1G-Italic.otf
ReallyNo2LTW1G-Regular.otf
UniversNextW1G-Bold.otf
UniversNextW1G-BoldItalic.otf
UniversNextW1G-Italic.otf
UniversNextW1G-Regular.otf
VerdanaW1G-Bold.otf
VerdanaW1G-BoldItalic.otf
VerdanaW1G-Italic.otf
VerdanaW1G.otf
SWNMTeb.ttc (=> SYNMinIWA-Th or SYMinIWA-Th)
Clockopia.ttf
DroidSans-Bold.ttf (=> HelveticaNeueLTW1G-Bd)
DroidSans.ttf (=> HelveticaNeueLTW1G-Roman)
DroidSansArabic.ttf
DroidSansFallback.ttf
DroidSansHebrew.ttf
DroidSansMono.ttf
DroidSansThai.ttf
DroidSerif-Bold.ttf
DroidSerif-BoldItalic.ttf
DroidSerif-Italic.ttf
DroidSerif-Regular.ttf
tt0003m_.ttf (=> Swis721 BT Roman)
tt0011m_.ttf (=> Dutch801 Rm BT Roman)
tt0419m_.ttf (=> Courier10 BT Roman)

My stylesheet.css content:

@font-face {
font-family: MyFont1;
font-weight: normal;
font-style: normal;
src: url(../Fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont2;
font-weight: normal;
font-style: normal;
src: url(/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont3;
font-weight: normal;
font-style: normal;
src: url(//system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont4;
font-weight: normal;
font-style: normal;
src: url(///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont5;
font-weight: normal;
font-style: normal;
src: url(res:/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont6;
font-weight: normal;
font-style: normal;
src: url(res://system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont7;
font-weight: normal;
font-style: normal;
src: url(res:///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont8;
font-weight: normal;
font-style: normal;
src: url(file:/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont9;
font-weight: normal;
font-style: normal;
src: url(file://system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont10;
font-weight: normal;
font-style: normal;
src: url(file:///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont11;
font-weight: normal;
font-style: normal;
src: url(/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont12;
font-weight: normal;
font-style: normal;
src: url(//mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont13;
font-weight: normal;
font-style: normal;
src: url(///mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont14;
font-weight: normal;
font-style: normal;
src: url(res:/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont15;
font-weight: normal;
font-style: normal;
src: url(res://mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont16;
font-weight: normal;
font-style: normal;
src: url(res:///mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont17;
font-weight: normal;
font-style: normal;
src: url(file:/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont18;
font-weight: normal;
font-style: normal;
src: url(file://mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont19;
font-weight: normal;
font-style: normal;
src: url(file:///mnt/sdcard/fonts/comic.ttf);
}
p {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-align: left;
text-indent: 0;
}
p.a {
font-family: MyFont1;
}
p.b {
font-family: MyFont2;
}
p.c {
font-family: MyFont3;
}
p.d {
font-family: MyFont4;
}
p.e {
font-family: MyFont5;
}
p.f {
font-family: MyFont6;
}
p.g {
font-family: MyFont7;
}
p.h {
font-family: MyFont8;
}
p.i {
font-family: MyFont9;
}
p.j {
font-family: MyFont10;
}
p.k {
font-family: MyFont11;
}
p.l {
font-family: MyFont12;
}
p.m {
font-family: MyFont13;
}
p.n {
font-family: MyFont14;
}
p.o {
font-family: MyFont15;
}
p.p {
font-family: MyFont16;
}
p.q {
font-family: MyFont17;
}
p.r {
font-family: MyFont18;
}
p.s {
font-family: MyFont19;
}
Attached Files
File Type: epub aa.epub (112.3 KB, 379 views)
seabee is offline   Reply With Quote