See the attached screenshot. Beside "Extended", there are "Light Extended" and "Bold Extended" as well. I would also suggest you try it out too simply with a QFontDialog. I'm not a font expert, to my understanding, a font style seems like a font properties preset.
Maybe I still haven't understand the question itself? The end user might choose to use the "Extended" style. The application simply offered a QFontDialog to allow user to select the preferred font, font size, style, etc.
Also see this attachment for a screenshot of QFontDialog, the middle list view is font name selection area which shows all available style names. For the mentioned Judou font, you can find it here: https://github.com/JudouEco/JudouMono/releases/tag/v2.0.0
It is "Judou Mono FCM Extended", "Judou Mono FCM" is its font family, "Extended" is its style name. Another example is "Source Code Pro Semibold" which "Source Code Pro" is its font family name and "Semibold" is its style name. The comma here as a splitter to allow we know whch part is font family name and which part is style name.
My current patch here btw: --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -147,7 +147,13 @@ public: explicit FontAndCharacterSet(const FontParameters &fp) : characterSet(fp.characterSet) { pfont = std::make_unique<QFont>(); pfont->setStyleStrategy(ChooseStrategy(fp.extraFontFlag)); - pfont->setFamily(QString::fromUtf8(fp.faceName)); + QString faceName = QString::fromUtf8(fp.faceName); + if (faceName.contains('/')) { + pfont->setFamily(faceName.section('/', 0, 0));...
It seems some fonts might have comma (,) in its font family name, so if we go with the splitter method, maybe we need to use another character as splitter like /.
Scintilla Qt API cannot set font's style name
Yeah it indeed look like the same issue as #2450, while I don't think go with setHighDpiScaleFactorRoundingPolicy is a sane way to fix this issue... https://sourceforge.net/p/scintilla/bugs/2450/#e379: Adding surface->FillRectangle(rcTextArea, Fill(vsDraw.styles[StyleDefault].back)); just above // Loop on visible lines in EditView.cxx also works! While the left line number margin still have thin line but it's at least usable :) So does it mean QRectFFromPRect actually don't need to add +1 when converting...
Yeah it indeed look like the same issue as #2450, while I don't think go with setHighDpiScaleFactorRoundingPolicy is a sane way to fix this issue... https://sourceforge.net/p/scintilla/bugs/2450/#e379: Adding surface->FillRectangle(rcTextArea, Fill(vsDraw.styles[StyleDefault].back)); just above // Loop on visible lines in EditView.cxx also works! So does it mean QRectFFromPRect actually don't need to add +1 when converting PRectangle to QRect?
Thin line when using Qt 6 scintilla to render text
CMake support for libintl
Maybe the correct fix is to add the #include <cstdint> to ScintillaTypes.h instead of ScintillaDocument.cpp? Since ScintillaTypes.h is the place we actually require uintptr_t and intptr_t.
Maybe the correct fix is to add the #include <cstdint> to ScintillaTypes.hinstead of ScintillaDocument.cpp? Since ScintillaTypes.h is the place we actually require uintptr_t.
fix: proper check for filemanager1 dbus
chore: update translators.html
chore: add fallback in case filemanager1 dbus failed
fix(ci): bump zlib version
fix: select item no longer work via filemanager1 dbus
Translated using Weblate (Norwegian Bokmål)
feat: open folder will also select file on linux
fix: blurry when raster image scaled down
fix: image blurry on Hi-DPI devices
fix: proper svg icon rendering on hidpi screen.
chore: update translators.html
chore: update translators.html
Translated using Weblate (Spanish)
CI(windows): bump dependencies version
i18n: initial uncompleted Japanese translation
chore: allow Meta+Up to maximize under Windows with Qt 6
chore: add license headers for REUSE license check
feat: add REUSE license check
Translated using Weblate (French)
chore: use const reference for a lambda slot
chore: Update CI link in README.md
chore: update translators.html
update ts files
i18n: strings for the default window size option
chore: comment out an option since string not localized
fix(ci): update zlib url
fix: caching scaled image to avoid lagging when panning large image
refactor: use QMetaEnum
feat: option for set window startup size
fix: display system-native path separators
Update translators.html
ci(windows): update dependencies version
feat: open containing folder
i18n: copywriting for show in directory feature
i18n: update copywriting for copyright description
i18n: update ts files
fix memory leak, print better path
fix: should check and ensure the parent path
fix hardcoded file name
basic workflow test (without actual extracting file now)
now basicly it works
add meson build for static building
init commit: test libzip
ci: build binary via github action
update README.txt and add LICENSE
Update README.md
feat: new action for open a dialog to select image files
shortcuts: left/right for prev/next image, hide open action from menu
Update translators.html
fix: do mouse gallery navigation on btn release
feat: support forward/back button on mouse for image navigation
chore: initial Qt6 build support
fix(bottombar): disable border style if no focus on it
fix: mouse back should show previous image
fix: should be able to see tab focus white box in bottom bar
ci: bump dependency version
Update translators.html
fix: no longer display resolution info for image that not supported such info
fix: disable auto fit after clicking actual size button
add new language file to qmake project file
fix: use a workaround to avoid pixelated when zoomed out
feat: add fit-in-view action
chore: tweak fit-in-view menu action behavior
ui: rework all action icons
fix: zoom out and then reset scale will display a mosaic image
fix: prev and next arrow not vertically centered in some case
chore: use QToolButton instead of QPushButton for bottom bar
chore: use utf8 for decoding metadata value
i18n: update ts files
fix: now always copy original pixmap
feat: display more image metadata
chore: hide two actions that not ready to be in release
fix: use metainfo.xml suffix instead of appdata.xml
fix: memory leak when switching between animated image files
fix(CI): QT_PLUGIN_INSTALL_DIR is deprecated, use KDE_INSTALL_QTPLUGINDIR instead
Revert "feat: fit by width"
fix: navigator view not get updated in some edge case
feat: fit by width
Update README.md
feat: add exif copyright info and gif frame count to property dialog
fix: should show any animated image than just gif
ci(build): use the install/strip target instead of CMAKE_CXX_FLAGS_RELEASE
fix: get rid of wrong tr() usage