View Single Post
Old 05-11-2021, 11:04 PM   #1094
ChildrenofkoRn
Junior Member
ChildrenofkoRn began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2021
Device: Kindle PW3
I sent a message about 5 days ago, it went to moderation, but it never appeared.
Well, I'll try again.

1. Solved the issue. By default for cfont:
Code:
cfont = "NotoSans-Regular.ttf"
And if I change the font, the symbols of the triangular UP and DOWN buttons are searched in this font, BUT they are searched in BOLD version:
Code:
_bold_font_variant["NotoSans-Regular.ttf"] = "NotoSans-Bold.ttf"
and if there is no in BOLD then - yes in fallback fonts and as I understand it are taken from FreeSans.ttf
So in the Monofur font (which I use with some modifications) there were really these characters, but empty (thanks for the hint).
Just changing the Regular - doesn't solve the problem, I needed to edit the BOLD version.
So I didn't figure it out right away.

2. It's a pity, I don't know much about other people's code and don't know lua, just a little ruby.
I haven't found a solution yet. On the other hand, this is not critical.

The other items are not so important.


But there is a really interesting question.
When I bought a PW3 and made a jailbreak, I had a question:
Why only 25 degrees of backlight and can I do more?

I found out that the actual number of levels is much higher: 0-4095
This can be easily found out through the terminal:
Code:
[root@kindle root]# cat /sys/class/backlight/max77696-bl/brightness
78
[root@kindle root]# echo -n 600 > /sys/class/backlight/max77696-bl/brightness
[root@kindle root]# cat /sys/class/backlight/max77696-bl/brightness
600
and check by setting the values and looking at the reader's backlight.
I think you already understand what I want to ask.
Can change the number of gradations through the KOReader code?
Are there any restrictions to do this on the part of the reader?

When reading at night in bed with a low backlight, it is very noticeable that the basic brightness levels do not change very smoothly. It seems to me it was a useful thing not only for me.
ChildrenofkoRn is offline   Reply With Quote