Yea, so I didn't read the stack overflow but it said what I said, though I take issue with "QPA won't work" assertion. QPA works just fine. I think what lead them to that was some package issues they were having. FWIW, I didn't have them.
 
 
 
 
Sent: Tuesday, June 07, 2016 at 9:52 AM
From: "Jason H" <jh...@gmx.com>
To: "Federico Buti" <fed.b...@gmail.com>
Cc: "interest@qt-project.org" <Interest@qt-project.org>
Subject: Re: [Interest] Painting fonts without GUI
While true, that is not the complete truth.
 
You can use a platform (-platform XXX) to specify an non-X server, and use that for rendering. That's how I generated PDFs on a headless server.
"offscreen" is one, but there is a better one that escapes me at the moment.
 
 
 
Sent: Tuesday, June 07, 2016 at 7:48 AM
From: "Federico Buti" <fed.b...@gmail.com>
To: "Etienne Sandré-Chardonnal" <etienne.san...@m4x.org>
Cc: "interest@qt-project.org" <Interest@qt-project.org>
Subject: Re: [Interest] Painting fonts without GUI
Hi,
 
you need a QGuiApplication for that. See e.g. this stackoverflow question.
 
Cheers,
F.
 
 
On 7 June 2016 at 11:04, Etienne Sandré-Chardonnal <etienne.san...@m4x.org> wrote:
Hi,
 
When I try painting text over a QImage in a console only application with QPainter::drawText, the program crashes.
 
Is there any way to enable font painting in a non GUI application? It should work without any X server, so in that case Qt should have a fallback font? This does not need to be pretty text.
 
Thanks!

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
 
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to