networksoli.blogg.se

Gnuplot fonts
Gnuplot fonts











gnuplot fonts

What happens if you use that family name? That takes some time and generates the warning.Īssuming it is loading correctly, the OpenType font you have manually loaded probably provides a font family name "Futura Light" (as this one does) and not "Futura". The system scans the entire font database trying to find the non-existent family name, or something aliased to it. You are asking for a font family "Futura" and the system is telling you it does not exist.

gnuplot fonts

So perhaps your error message is due to some call to QFont(.) and not QFontDatabase.font? Replace uses of missing font family "Futurama" with one that exists to avoid this cost." No Futura font shows up and now I get "Populating font family aliases took 215 ms. However if I try: QFontDatabase::addApplicationFont("/Users/henry/Downloads/futura-light-opentype.otf") No Futura font shows up in my listwidget but also no error message Note that it's difficult to get that error "qt.qpa.fonts: Populating font family aliases to." from a call to QFontDatabase::font (at least in C++) if I try QFontDatabase::addApplicationFont("/Users/henry/Downloads/futura-light-opentype.otf") Īuto font = QFontDatabase::font("Futurama","Light",24)

#Gnuplot fonts code

Downloaded Futura-Light.otf, created an empty widget app with a listwidget and tried this code at start (in mainwindow's constructor): QFontDatabase::addApplicationFont("/Users/henry/Downloads/futura-light-opentype.otf") Īuto font = QFontDatabase::font("Futura","Light",24) Īnd I get no error message (and the Futura Light font is visible in that listwidget). Hi, just tested with C++, I'm on Monterey 12.4 Xcode 13.4.1 and Qt 6.3.1. Thank you for any advice! I appreciate your help. How does QFontDatabase determine that list? Perhaps QFontDatabase is reading a system-wide list or configuration of some kind - what might that be? How can I know, from outside of a Qt application, what is the list of fonts which QFontDatabase knows about? SECOND EDIT: It appears that, within a Qt application, QFontDatabase supplies the list of available fonts. That makes me wonder how I can determine the list of acceptable font names any info about that would be terrific. If I change the font to "Arial,9", the warning goes away. So that's where "Sans" mentioned in the warning message is coming from.

gnuplot fonts

I am not sure whether the responsibility for handling this font configuration question rests on Qt or on Gnuplot in any event, if I can find out what Gnuplot needs to tell Qt, I can go to the Gnuplot developers and ask them about it.ĮDIT: I see now that Gnuplot is confiuring its default Qt terminal with font "Sans,9". How can I configure Qt, or set an environment variable, or use a runtime option, or otherwise inform Qt as to the presence or absence of some fonts? What should I tell it? Replace uses of missing font family "Sans" with one that exists to avoid this cost. Qt.qpa.fonts: Populating font family aliases took 175 ms. When I try any plot with Gnuplot, I get a warning about "missing font family", e.g.: gnuplot> plot sin(x) I am working with Gnuplot 5.4 and I see that Qt 5.15.0 is installed although I am not sure if Gnuplot is making use of that or if it's statically linked. Hi, I'm working with Qt on macOS Cataline 10.15.6.













Gnuplot fonts