LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-19-2016, 02:34 PM   #1
Przemas
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Rep: Reputation: Disabled
Can you replace font used by Qt app (the one that ships with its own libraries)


I've been wondering whether there's a way to set up Linux so it would swap font in a Qt4 app for other, specified one? Especially considering the app ships with its own libraries (I see quite a bit libQt*.so files in the app folder).
I'm looking for a way to do it as the app I use for work has a font that is not very cool to work with on higher resolution screen, and tweaking dpi is not ideal too - a slightly "fatter" font would be better).
Attached Thumbnails
Click image for larger version

Name:	font.jpg
Views:	7
Size:	977 Bytes
ID:	23802  
 
Old 12-20-2016, 07:46 AM   #2
problemguy
LQ Newbie
 
Registered: Jul 2016
Posts: 12

Rep: Reputation: Disabled
I'm not sure what you mean, but you can set the default font of an application with QApplication::setFont() in Qt 4.8 and QGuiApplication::setFont() in Qt 5.7. Before you can do that, you need to have an instance of either QApplication or QGuiApplication, depending on your Qt version.

More information about the QFont class:
http://doc.qt.io/qt-4.8/qfont.html
http://doc.qt.io/qt-5/qfont.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: UbuTricks 14.10.22 Ships with 50 App Installer, Ubuntu 14.10 Support LXer Syndicated Linux News 0 10-22-2014 01:42 PM
LXer: LG Revolution ships with first-ever Android Netflix app LXer Syndicated Linux News 0 05-26-2011 04:41 PM
LXer: CentOS 5.6 ships as Red Hat preps cloud app platform LXer Syndicated Linux News 0 04-13-2011 05:20 AM
LXer: Kindle for Android app ships, but Froyo roll-out hits snag LXer Syndicated Linux News 0 07-01-2010 07:00 AM
LXer: NVIDIA ships wine libraries to support native DirectX! LXer Syndicated Linux News 0 04-02-2006 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration