11-03-2018, 11:09 AM | #61 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@frostschutz,
I noticed, with interest, that NiLuJe's new version of fbink 1.8 will now allow use of sideloaded TTF/OTF fonts. Is this something I can now tinker with myself in Miniclock or do I need to wait? I'm not trying to hassle you, just interested. BTW, if any knowledge of "compiling stuff" is required - that translates to "you'll have to wait, Jackie" |
11-03-2018, 03:08 PM | #62 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Yes, I'll try to support TTF fonts. Well, it's FBInk supporting them and not me, really.
But I think you can't use pixel offsets with them. I have to do some more testing |
Advert | |
|
11-03-2018, 03:23 PM | #63 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You can set the printable area via T/B/L/R margins in pixels, and you can get the screen resolution via eval $(fbink -qe), so you should be able to do roughly the same kind of things with a bit of maths .
The only thing you won't get beforehand is the exact maximum pixel height of a specific font at a given point size, because that's only done from inside the printing loop. TL;DR: You can actually *only* do pixel positioning . Last edited by NiLuJe; 11-03-2018 at 04:53 PM. |
11-03-2018, 03:47 PM | #64 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Hopefully you're both saying that it will still be possible to get the time on the same exact line as the page numbers? I don't mind having to do math or a few tries playing around with it to get it exact, but for someone as picky as me, if it was above or below the page numbers, it would be even worse than a different font correctly lined up. Every time I'd be at the bottom of the page the misalignment would be screaming at me hehe. I can't help it, and I don't mind putting the time in to get it exact.
|
11-03-2018, 04:18 PM | #65 | |
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Quote:
Yep, I’m the same!! |
|
Advert | |
|
11-05-2018, 08:08 AM | #66 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
So, new version, with night mode and true type support, please test it.
new settings for night mode: Code:
# # NightMode support: # nightmode_file=/mnt/onboard/.kobo/nightmode.ini nightmode_key=invertActive nightmode_value=yes You can change these values, if you want it to ignore the night mode, or if you're using some other night mode mod or setting that has to look at a different config file. new settings for true type: Code:
# # TrueType support: # # For fonts inside the MiniClock directory: # truetype=yourfont.ttf # # For fonts stored elsewhere in the filesystem: # truetype=/mnt/onboard/fonts/something.ttf # # Only set these if you use *italic*, **bold**, ***bold italic*** in your format string: # # truetype_format=*%a* **%b** ***%d*** %H:%M # truetype_bold=yourfont-bold.ttf # truetype_italic=yourfont-italic.ttf # truetype_bolditalic=yourfont-bolditalic.ttf # # Technically, this can also be used for completely different font styles, # instead of italic or bold variants of the same font. # # NOTE: Will fall back to regular mode when font file is unavailable. # (e.g. while the device is connected to USB) # truetype_size=16 truetype_x=0 truetype_y=0 truetype_fg=BLACK truetype_bg=WHITE (Download link in my signature) |
11-05-2018, 09:36 AM | #67 | |
absolute beginner
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
As you can see x and y are inverted in KA1, and don't do any case to truetype_format Spoiler:
Good luck. |
|
11-05-2018, 10:00 AM | #68 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
whoops the x/y inversion is my fault.
I'll fix it in the next version, sorry about that. (and of course I tested with x=500 y=500 and didn't notice ) ---- Edit: Updated, please give it another whirl. Thank you for your patience Last edited by frostschutz; 11-05-2018 at 10:04 AM. |
11-05-2018, 10:28 AM | #69 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
And before anyone tries: we unfortunately can't use system fonts, because they're obfuscated or encrypted or something... ;/
|
11-05-2018, 10:32 AM | #70 |
absolute beginner
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
|
11-05-2018, 03:03 PM | #71 |
Librocubicularist
Posts: 617
Karma: 11908623
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 5
|
Thank you, Frostschutz, for all your work with this tiny wonderfool tool!
If I could only get it to work now with a TrueType Font... Which lines do I need to uncomment and which should be deactivated in order to use a TTF? Is it important to write capitals as in the folder name and font name? E.g. like this? "truetype=/mnt/onboard/Fonts/ChareInk-Regular.ttf" What do I write in the original lines for offset, font and font size, etc.? Also, the values "offset_x=20, offset_y=1390" put the clock into the most upper left corner (no margin), not the lower left. Edit: At the moment, the clock only shows up after a while when my Clara is connected to the computer, not in a book. I don't know what I'm doing wrong. Last edited by LucyOne; 11-05-2018 at 03:21 PM. |
11-05-2018, 03:42 PM | #72 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
While in this specific instance, it's not necessary (FAT32), I'd say: always honor case in filepaths by default, that'll save you potential trouble down the road .
I assume it's showing with something other than a TTF font when it's connected to a computer, right? On the off-chance it's a font-speciifc issue, do you have a link to your exact version of the font in question? |
11-05-2018, 03:42 PM | #73 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Basically there are two sets of settings now... one set for the old bitmap font style, and then a new truetype_* set that will be used for truetype font.
The reason there are two sets is just that when you connect to USB, the /mnt/onboard on the Kobo vanishes so it may appear on the PC instead. And then MiniClock no longer has access to the fonts, so it falls back to the old bitmap font mode instead. (That and you could be deleting or renaming the font without remembering that MiniClock is still set to be using it.) For MiniClock to show up as you like it in both reading mode, and USB connection mode, you have to configure both the way you like. If either doesn't show up there's a configuration error, or maybe a problem with the font file. Of course it's also possible there is still a hidden bug in the miniclock. Or simply a caveat, like the clock not appearing when the offset pushes it off screen - start with lower numbers If you post your config I can check for obvious errors. Regarding capitalization, /mnt/onboard/ must be in lower case, everything else is case insensitve unless you're also using my ext234 mod which is, uh, hidden somewhere and I'm not even sure if it still works Last edited by frostschutz; 11-05-2018 at 04:19 PM. |
11-05-2018, 04:26 PM | #74 |
Grand Sorcerer
Posts: 6,235
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Just a question. I've included both normal and truetype font. Reading, however, only appears normal font. The cfg file has been read (dirty trick: modify x position, check, done). I'm trying to load ChareInk-Regular from /mnt/onboard/fonts/ChareInk-Regular.ttf, but it doesn't work. How can I check what is happening?
|
11-05-2018, 04:33 PM | #75 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
that's two people with the same font... does any other font work for you?
also please post your config, and perhaps a download link to the font involved, so I can try and see what happens here Last edited by frostschutz; 11-05-2018 at 04:38 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I (almost) spend more time reading about e-readers than e-reading | Antoinekamel | General Discussions | 15 | 02-25-2013 10:48 AM |
360 PB360 display gets "stripes" from time to time | klaetsch | PocketBook | 1 | 01-05-2011 04:49 AM |
How to get the time to display | synic | Sony Reader | 9 | 06-10-2009 06:05 PM |
Time Display | Jenny123 | Sony Reader | 2 | 04-23-2009 02:06 PM |
Time Display? | MickeyC | Sony Reader | 3 | 02-10-2008 11:57 PM |