|
|
#931 | |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,871
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Is it technically possible? Yes. Is it the “right” choice to do? Questionable. There are reasons why most editing apps have historically “inlined” font settings into simplified dropdowns and buttons. The tradeoff is less font selection, but sometimes less is more. Not saying I won’t do it but I’m not going to rush into it. Plus I have to find the time to make more changes, which as always is at a premium. |
|
|
|
|
|
|
#932 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,594
Karma: 154365185
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How about a check for what version of calibre (qt5 or qt6 and supporting fonts based on the QT version)?
|
|
|
|
|
|
#933 | |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,871
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
What I implemented was a static dropdown selection of weight options of which technically 3 more can be added to with Qt6 (two lighter and one heavier at extremes of the list from memory). I restricted it to just those that were common to Qt5 and Qt6. What that means is as a user you can choose combinations of font + weight that don’t actually exist as an explicit font variation installed on your system. If that is the case then Qt does an interpolated attempt for drawing purposes. Much of the time most people won’t notice a difference unless you go pixel peeping or certain fonts not reacting well to such scaling. The font dialog is instead based on a database showing you only font style variations that exist on your system as the font designer intended. Which means in some cases less combinations/flexibility than what I have implemented for some fonts. If the font designer only created “regular” and “bold regular” then that means no ability to render it as “light” or “extra bold” or italic etc. Some purists might argue that is what they want - only fonts rendered to the best the font designer could design, rather than approximated rendering. Other users prefer dialing in the fonts to look exactly like what appeals to them. Can’t keep everyone happy all of the time as every plugin thread shows… |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1825 | 10-28-2026 01:32 PM |
| [GUI Plugin] User Category | kiwidude | Plugins | 128 | 10-24-2026 09:01 AM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 65 | 10-23-2026 11:09 PM |
| [GUI Plugin] Clipboard Search | kiwidude | Plugins | 31 | 10-16-2026 10:54 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 406 | 10-10-2026 01:59 AM |