Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: specify font weight (counterpart to QML's font.weight) #11

Open
AndydeCleyre opened this issue Jun 6, 2017 · 3 comments
Open

Comments

@AndydeCleyre
Copy link

Hi,

Thanks for this great project. I noticed that the 0.6.0 supports spaces in attributes by using single quotes, but I have been unable to get it to use a font style "Iosevka Light," trying as follows:

fmt = " | font='Iosevka Light' size=24"

Iosevka (regular) works without problem.

$ fc-match "iosevka light"
iosevka-custom-light.ttf: "Iosevka" "Light"
@lipido
Copy link
Owner

lipido commented Jun 6, 2017

Thank you for trying kargos. I have checked if there is a bug in parsing, but it seems that is related with Qt/QML.

What kargo does is to take the font attribute in the user script ('Iosevka Light') and assign it directly to the font property of a QML Label, without further modifications:
http://doc.qt.io/qt-5/qml-qtquick-text.html#font.family-prop

Other examples do work, for example, try "free sans" vs "free serif"

$ fc-match "free sans"
FreeSans.ttf: "FreeSans" "Regular"

$ fc-match "free serif"
FreeSerif.ttf: "FreeSerif" "Regular"

@AndydeCleyre
Copy link
Author

Thanks, that's very informative. Can we morph this ticket into a request for an attribute counterpart to QML's font.weight?

@lipido
Copy link
Owner

lipido commented Jun 7, 2017 via email

@AndydeCleyre AndydeCleyre changed the title Possible to Specify Font Name with Spaces? Request: specify font weight (counterpart to QML's font.weight) May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants