09-14-2021, 10:23 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2021
Device: kobo libra h2o
|
Does changing default UI fonts through settings.reader.lua works?
I added a fontmap portion to my settings.reader.lua but it doesn't work instead a default settings.reader.lua is created and loaded. Does this work? If so what am I missing?
Code:
["fontmap"] = { ["cfont"] = "IBMPlexSans-Regular.ttf", ["tfont"] = "IBMPlexSans-Bold.ttf", ["smalltfont"] = "IBMPlexSans-Bold.ttf", ["x_smalltfont"] = "IBMPlexSans-Bold.ttf", ["ffont"] = "IBMPlexSans-Regular.ttf", ["smallffont"] = "IBMPlexSans-Regular.ttf", ["largeffont"] = "IBMPlexSans-Regular.ttf", ["rifont"] = "IBMPlexSans-Regular.ttf", ["pgfont"] = "IBMPlexSans-Regular.ttf", ["scfont"] = "IBMPlexMono.ttf", ["hpkfont"] = "IBMPlexMono.ttf", ["hfont"] = "IBMPlexSans-Regular.ttf", ["infont"] = "IBMPlexMono.ttf", ["smallinfont"] = "IBMPlexMono.ttf", ["infofont"] = "IBMPlexSans-Regular.ttf", ["smallinfofont"] = "IBMPlexSans-Regular.ttf", ["smallinfofontbold"] = "IBMPlexSans-Bold.ttf", ["x_smallinfofont"] = "IBMPlexSans-Regular.ttf", ["xx_smallinfofont"] = "IBMPlexSans-Regular.ttf", }, |
09-14-2021, 11:34 AM | #2 |
Wizard
Posts: 1,693
Karma: 730679
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
It's a bit unclear what you mean by "this". If you mean that's an excerpt, I'd have to try at home. If you mean that's all you put in there, it's incomplete and should look closer to:
Code:
return { ["fontmap"] = { ["cfont"] = "IBMPlexSans-Regular.ttf", ["tfont"] = "IBMPlexSans-Bold.ttf", ["smalltfont"] = "IBMPlexSans-Bold.ttf", ["x_smalltfont"] = "IBMPlexSans-Bold.ttf", ["ffont"] = "IBMPlexSans-Regular.ttf", ["smallffont"] = "IBMPlexSans-Regular.ttf", ["largeffont"] = "IBMPlexSans-Regular.ttf", ["rifont"] = "IBMPlexSans-Regular.ttf", ["pgfont"] = "IBMPlexSans-Regular.ttf", ["scfont"] = "IBMPlexMono.ttf", ["hpkfont"] = "IBMPlexMono.ttf", ["hfont"] = "IBMPlexSans-Regular.ttf", ["infont"] = "IBMPlexMono.ttf", ["smallinfont"] = "IBMPlexMono.ttf", ["infofont"] = "IBMPlexSans-Regular.ttf", ["smallinfofont"] = "IBMPlexSans-Regular.ttf", ["smallinfofontbold"] = "IBMPlexSans-Bold.ttf", ["x_smallinfofont"] = "IBMPlexSans-Regular.ttf", ["xx_smallinfofont"] = "IBMPlexSans-Regular.ttf", }, } |
Advert | |
|
09-14-2021, 12:39 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2021
Device: kobo libra h2o
|
sorry for the confusion, it is indeed an excerpt of the whole file and is indeed inside return{} with the rest of the settings.
|
09-14-2021, 01:56 PM | #4 | |
Wizard
Posts: 1,693
Karma: 730679
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Well, in that case what I posted works for me — or rather doesn't work for me because I don't have those fonts, but it crashes as expected, so to speak.
Quote:
|
|
09-14-2021, 03:36 PM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2021
Device: kobo libra h2o
|
Thank you very much. It seems that appending fontmap after all the other settings fails but putting it in the right alphabetical order (in my case between ["folder_shortcuts"] = {}, and ["footer"] = {},) works.
|
Advert | |
|
09-14-2021, 04:52 PM | #6 |
Wizard
Posts: 1,693
Karma: 730679
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
It doesn't need to be alphabetical. If you run `lua settings.reader.lua`or `luajit settings.reader.lua` it'll tell you roughly where you made a syntax error.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change to M92 default settings. PDF reader customization. Is it possible? | Reeduh | Onyx Boox | 0 | 12-16-2020 03:08 PM |
*VERY* detailed guide on changing default Reader fonts | Valloric | Sony Reader Dev Corner | 273 | 07-20-2012 06:57 PM |
changing reader's default files | zoran | Kobo Reader | 1 | 07-16-2010 09:02 AM |
Changing fonts on ECO reader?? | troykm | HanLin eBook | 2 | 12-23-2009 04:05 PM |
Resetting Sony Reader to Factory Default Settings | Yak | Sony Reader | 1 | 11-04-2006 12:34 PM |