{"action":"created","issue":{"url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/12787","repository_url":"https://api.github.com/repos/FortAwesome/Font-Awesome","labels_url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/12787/labels{/name}","comments_url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/12787/comments","events_url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/12787/events","html_url":"https://github.com/FortAwesome/Font-Awesome/issues/12787","id":311724498,"node_id":"MDU6SXNzdWUzMTE3MjQ0OTg=","number":12787,"title":"Cannot use both regular and solid fonts together in the same Qt/QML application","user":{"login":"mhoeher","id":1911135,"node_id":"MDQ6VXNlcjE5MTExMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1911135?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeher","html_url":"https://github.com/mhoeher","followers_url":"https://api.github.com/users/mhoeher/followers","following_url":"https://api.github.com/users/mhoeher/following{/other_user}","gists_url":"https://api.github.com/users/mhoeher/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeher/subscriptions","organizations_url":"https://api.github.com/users/mhoeher/orgs","repos_url":"https://api.github.com/users/mhoeher/repos","events_url":"https://api.github.com/users/mhoeher/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeher/received_events","type":"User","site_admin":false},"labels":[{"id":40531311,"node_id":"MDU6TGFiZWw0MDUzMTMxMQ==","url":"https://api.github.com/repos/FortAwesome/Font-Awesome/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-05T18:41:35Z","updated_at":"2018-07-29T11:38:44Z","closed_at":null,"author_association":"NONE","body":"I often use Font Awesome in Qt/QML applications. In v4, this was quite straightforward, all that needed to be done was using a [FontLoader](http://doc.qt.io/qt-5/qml-qtquick-fontloader.html) and then set the [font.family](http://doc.qt.io/qt-5/qml-qtquick-text.html#font.family-prop) attribute of text elements to the font family (which could be retrieved via the `FontLoader`).\r\n\r\nWith v5, we now have several font files (e.g. there are 3 `*.ttf` files in the Free version). Generally, it is possible to use multiple `FontLoader`s to load all of them. However, I noticed that the font family for the regular and solid variants are the same. Hence, I cannot easily switch between the two by setting the `font.family` attribute of text objects.\r\n\r\nI would have expected to be able to select the variant by one of the following:\r\n\r\n* Setting the [font.weight](http://doc.qt.io/qt-5/qml-qtquick-text.html#font.weight-prop) property. This did not work out for some reasons - maybe a Qt issue?\r\n* Setting the [font.styleName](http://doc.qt.io/qt-5/qml-qtquick-text.html#font.styleName-prop) property, i.e. `Solid` vs `Regular`. However, this also did not work (because all the font files are set to `Regular`).\r\n\r\nFor the time being, I worked around the issue by editing the file `fa-solid-900.ttf` with [FontForge](https://fontforge.github.io) and setting the font family to *Font Awesome 5 Free Solid*. With the modified `*.ttf` file I can easily switch between the two styles in my QML application. It would however be cool if Font Awesome would work out of the box with Qt/QML ;-)\r\n\r\nThanks for considering!\r\n\r\nBtw: The brands font file seems to work just fine, however, this is probably due to it uses a different font family name compared to the other two."},"comment":{"url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/comments/408670459","html_url":"https://github.com/FortAwesome/Font-Awesome/issues/12787#issuecomment-408670459","issue_url":"https://api.github.com/repos/FortAwesome/Font-Awesome/issues/12787","id":408670459,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY3MDQ1OQ==","user":{"login":"tagliala","id":556268,"node_id":"MDQ6VXNlcjU1NjI2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/556268?v=4","gravatar_id":"","url":"https://api.github.com/users/tagliala","html_url":"https://github.com/tagliala","followers_url":"https://api.github.com/users/tagliala/followers","following_url":"https://api.github.com/users/tagliala/following{/other_user}","gists_url":"https://api.github.com/users/tagliala/gists{/gist_id}","starred_url":"https://api.github.com/users/tagliala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagliala/subscriptions","organizations_url":"https://api.github.com/users/tagliala/orgs","repos_url":"https://api.github.com/users/tagliala/repos","events_url":"https://api.github.com/users/tagliala/events{/privacy}","received_events_url":"https://api.github.com/users/tagliala/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T11:38:44Z","updated_at":"2018-07-29T11:38:44Z","author_association":"MEMBER","body":"Glad you've solved.\r\n\r\n.ttf files are not supposed to be used on the desktop, because they are generated for the web by a webfont script"}}
{"actor":{"display_login":"tagliala"}}