![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@oddman5,
What do you have in your userStyle.css @font-face statements at the moment? Your previous post suggests you want both serif and sans-serif text to display as Arial on your reader. If so, are your @font-faces something like: Code:
@font-face {font-family: "Arial"; font-weight: normal; font-style: normal; src: url(res:///Data/...fontname.ttf);}
In each of your 4 @font-faces, try replacing the red bit above so that it looks like the blue bit below: Code:
@font-face {font-family: "Arial", serif, sans-serif; font-weight: ... etc ...
Last edited by jackie_w; 01-10-2011 at 10:26 AM. |
![]() |
![]() |
![]() |
#17 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
|
Jackie_w
This is my userstyle.css file on the reader: @font-face { font-family: -ua-default; font-weight: normal; font-style: normal; src: url(res:///Data/epub/FONT/Arial/arial.ttf); } @font-face { font-family: -ua-default; font-weight: bold; font-style: normal; src: url(res:///Data/epub/FONT/Arial/arialbd.ttf); } @font-face { font-family: -ua-default; font-weight: normal; font-style: italic; src: url(res:///Data/epub/FONT/Arial/ariali.ttf); } @font-face { font-family: -ua-default; font-weight: bold; font-style: italic; src: url(res:///Data/epub/FONT/Arial/arialbi.ttf); } @font-face { font-family: "sans-serif1"; src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf); } h1 { font-family: sans-serif1, sans-serif; } How exactly do you think I should change it? (I want Arial to be the the default font. It is now on most books, but not all) Regards Last edited by oddman5; 01-11-2011 at 10:45 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@oddman5,
Try the following:
It's a bit "belt and braces" but this userStyle.css may handle some epubs that the original didn't. If it still doesn't work, I'd need to see some of the particular epub which doesn't work. |
![]() |
![]() |
![]() |
#19 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
|
@jackie_w
Looks like this did the trick. Thanks a lot, Jackie! |
![]() |
![]() |
![]() |
#20 |
Fiiiiiiiiiiiiiiiiiiiiish?
![]() ![]() Posts: 85
Karma: 162
Join Date: Sep 2009
Device: Current: PRS-650, Previous: Books
|
Can you post the correct code?
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@Loose_Appeal,
What are you trying to achieve? The correct code depends on which font you want to use as your default serif font and which font as your default sans-serif font. Oddman5 wanted to use Arial (a sans-serif font) for both. Personally I prefer to keep serif and sans-serif as two different fonts. |
![]() |
![]() |
![]() |
#22 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
|
@jackie_w
Jackie, when going through some of my books, it seems that now the books that was showing as Arial before, is now back to Sony default, while the ones that didn't, now shows up as Arial. Strange. Guess i have to customize them with Calibre before I send them to the prs 650. Could you show us your userstyle.css, so I can compare. (It doesn't have to be Arial) |
![]() |
![]() |
![]() |
#23 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
|
Doublepost
Last edited by oddman5; 01-13-2011 at 03:49 AM. |
![]() |
![]() |
![]() |
#24 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2010
Location: Sydney, Australia
Device: Original Kobo, PRS-650
|
Does anyone know if these firmware flash files are available for Macs?
I've downloaded the file but they seem to be windows files and my poor ol' mac doesn't know what to do with them... Last edited by SirNose; 01-13-2011 at 05:20 AM. Reason: typo |
![]() |
![]() |
![]() |
#25 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I need to add that it is not possible to create a userStyle.css which is guaranteed to automatically "correct" all epubs. However, I don't think there is an epub which cannot be fixed with the correct "tweak", as long as the epub doesn't have DRM. I'd be happy to have a closer look at one of your non-working epubs, if you want to post it here. If that's not possible for copyright reasons, you can always send me a PM with an email address or a link to the epub. Last edited by jackie_w; 01-13-2011 at 08:26 AM. |
|
![]() |
![]() |
![]() |
#26 | |
Junior Member
![]() Posts: 3
Karma: 16
Join Date: Dec 2010
Device: Sony PRS650BC
|
![]() Quote:
Until the universal flasher is developed for the PRS650, that may be the only thing you can do. There has to be more than two people trying to flash their readers who have MACs Francois |
|
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
|
My Mac is set up with Boot Camp and Win 7, use either as PC or via Parallels virtual PC... essentially same solution as Francois_4256. It's so easy using PC stuff on an Intel Mac now that I just take it for granted... and am delighted I'm not doing it the other way round...
![]() |
![]() |
![]() |
![]() |
#28 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2010
Location: Sydney, Australia
Device: Original Kobo, PRS-650
|
Cheers Francois & El, I'll have to investigate this option i spose... seems a shame as there are such other good Mac ebook tools and resources.
|
![]() |
![]() |
![]() |
#29 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2011
Device: PRS-950
|
Many thanks to all of you for posting your observations and guidance!
After two days of fiddling with the css set-up to get polish fonts I finally got it working! But this time was not wasted as I've learned a lot about Calibe conversion function, css formatiing and epub structure... Now I can better organize my library in Calibre... |
![]() |
![]() |
![]() |
#30 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
deleted
Last edited by goaspy; 02-14-2011 at 12:57 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
user accessable userStyle.css please | tselling | PocketBook | 14 | 02-25-2022 05:27 PM |
prs-650 firmware on prs-600? | omk3 | Sony Reader Dev Corner | 5 | 03-01-2011 02:38 PM |
PRS 650 Firmware and userStyle.css | mboyaci | Sony Reader | 1 | 12-07-2010 03:59 PM |
userstyle.css and epub margins | tselling | Sony Reader Dev Corner | 8 | 10-28-2010 01:51 PM |
ADE mit userstyle css | mtravellerh | PocketBook | 0 | 05-21-2010 03:40 PM |