How many fonts can i use in Qt? - qt

Like setFont(QFont("Helvetica",16,1)),I want to summerize these fonts.However,I dont't know how many fonts there are.
Is there any guy tell me ? or give me a link. Thank you !!

Use QFontDatabase to find out the fonts installed on the system. In particular, check QFontDatabase::families().

Related

It is possible to find out which font in psd is using gimp? Or using another app on ubuntu?

Need to find out which font in psd is, using gimp. It is possible? Or please tell how can i do it maybe with another app on Ubuntu?
I had the same problem some time ago using Gimp: unfortunatly it rasterizes .PSD fonts, rendering them as images, so if you are looking for some free tools, I've created a PSD fotn extractor from Melitingice Github project psd.js.
If you need more than just font info, I've started something more complex here, with layers and image export.
hope it helps
You can use App and also browser:
https://avocode.com/

How to add a custom font (.TTF) in BB cascades?

I am developing an app in which I need to have a label with my custom fonts.
I can't find a solution to load a .ttf file into qml. Any ideas?
Pressently with the cascades/Qt framework it is not supported,It will be supported in future releases.
Plz refer cascades roadmaps
https://developer.blackberry.com/cascades/download/roadmap/
It could be tricky getting it into QML, the recommended way for using fonts is: QFontDatabase::addApplicationFont but I'm unsure if that'll work on Blackberry as it does have issues on various platforms.
both solutions are wrong the proper one what i use is to create a weview and add fonts in the webview and then you can have the 2 way communication between the webview and the qml.
Please take a look at the funkypigeon app when you crete inside text of the card.

Is there a standard web-based font that is similar to Malgun (Korean font)?

A client needs to have Malgun as the font whenever hangul characters are present. I'm trying to find something to use in CSS that is close to it. I was thinking Verdana. Anyone else have a suggestion?
Verdana is also looking closer to Malgun, I think you should try google fonts http://www.google.com/webfonts
There are no "standard web-based fonts", only fonts that are more or less probable to be installed on the computer, where the browser is running. You may try to build a font-stack, that comes close to the one you want, e.g. the Verdana based font stack from this Sitepoint article, and then use font-loading methods like Google Webfonts to load your defined font for browsers that support loading fonts.
Do not try to give each visitor the same experience, but the best experience possible. Tell your customer, that a website is not a application that looks the same everywhere, but more like a TV program, that must be viewable from a black and white TV also, see this video.
Have you thought about using Fontsquirrel #font-face generator ? Also, for hangul, you might be interested in reading this.

Qt: Help to choice the multimedia framework

Please give me peace of advice. I would like to create some kind of audio-video player with some original functionality. But the problem is I'm not sure which multimedia framework to use. I tried to use Phonon but it has some bugs and for some reason it doesn't support many file formats (maybe I just don't know how to use it properly). So I'm thinking maybe some other mediaframework would be better. Maybe I'm wrong. I can use only LGPL license.
Thanks in advance
Check out Google for "qt vlc". That might give you a starting point.
Like the above user said, vlc is a good option.
Another good option would be GStreamer. Although it isn't qt-specific (it's rather Gnome-y actually), it's a pretty decent multimedia framework, and its documentation is (in my humble opinion) superior to vlc's.
Check them out at: http://gstreamer.freedesktop.org/

Is it possible to embed Qt Assistant as a widget inside my application?

We're running one of our apps on a 8" touch screen and want to add help to it.
Launching Qt Assistant from a menu item works fine for desktop applications, but for touch applications it's far from ideal.
I haven't been able to figure out if it is possible, or permitted to do so?
QAssistant.exe itself seems to come with some license restrictions, but maybe there's another way to do this, like embedding a small web-browser or something.
Have anyone else tackled this, or something similar?
Check out how QtCreator does this, they have integrated QtHelp which looks exactly like what you're trying to do. The library they use for that is the QtHelp module (I think).
You should check the documentation for QHelpEngine and QHelpContentWidget. I think that these classes will meet your needs.
Another way would be to actually see how Qt Assistant is implemented, by looking at the source.

Resources