Skip to content

Commit

Permalink
Update fonts for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
netw0rkf10w committed Feb 20, 2024
1 parent 00f04ef commit 2107a5f
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ build*/
symbols-ng/gesymb-ng
symbols-ng/gesymb-ng.o
CMakeLists.txt.user
.DS_Store
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ endif()

# poppler

find_package(PkgConfig)
pkg_check_modules(POPPLER QUIET IMPORTED_TARGET poppler-cpp poppler-qt${QT_VERSION_MAJOR})
find_package(PkgConfig REQUIRED)
# pkg_check_modules(POPPLER QUIET IMPORTED_TARGET poppler-cpp poppler-qt${QT_VERSION_MAJOR})
pkg_check_modules(POPPLER IMPORTED_TARGET poppler-cpp poppler-qt${QT_VERSION_MAJOR})
if(POPPLER_FOUND)
message(STATUS "Build internal pdf previewer.")
else()
Expand Down
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook0_dm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook7.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook7_dm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook8_dm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/lbook9_dm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/view-doc-ps.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images-ng/colibre/view-doc-ps_dm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions src/pdfviewer/pdfviewer.pri
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ isEmpty(NO_POPPLER_PREVIEW) {
macx { # PATH to pkgconfig needs to be present in build PATH
QT_CONFIG -= no-pkg-config
}
poppler_qt_pkg = poppler-qt$${QT_MAJOR_VERSION} poppler-cpp
# poppler_qt_pkg = poppler-qt$${QT_MAJOR_VERSION} poppler-cpp

CONFIG += link_pkgconfig
INCLUDEPATH += ~/.local/include/poppler/qt6
LIBS += -L~/.local/lib -lpoppler-qt6

PKGCONFIG += $${poppler_qt_pkg}
CONFIG += link_pkgconfig
# PKGCONFIG += $${poppler_qt_pkg}
# PKGCONFIG += poppler-qt6
# PKGCONFIG += ~/.local/lib/pkgconfig/poppler-qt6.pc

!isEmpty(MXE){
message("Using MXE")
Expand Down
2 changes: 1 addition & 1 deletion src/qcodeedit/lib/document/qdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ QDocument::QDocument(QObject *p)
if ( !QDocumentPrivate::m_font )
{
// must not happen if config dialog plugged in...
setBaseFont(QFont("Monospace", 10));
setBaseFont(QFont("Menlo", 10));
}


Expand Down
2 changes: 1 addition & 1 deletion src/qcodeedit/lib/widgets/qeditconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void QEditConfig::restore()

m_direct = false;

QFont font("Monospace", 10);
QFont font("Menlo", 10);
font.setStyleHint(QFont::Courier);

cbFont->setFont(font);
Expand Down

0 comments on commit 2107a5f

Please sign in to comment.