{"action":"closed","issue":{"url":"https://api.github.com/repos/papyros/qml-material/issues/46","labels_url":"https://api.github.com/repos/papyros/qml-material/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/papyros/qml-material/issues/46/comments","events_url":"https://api.github.com/repos/papyros/qml-material/issues/46/events","html_url":"https://github.com/papyros/qml-material/issues/46","id":52011250,"number":46,"title":"Support the different Roboto styles styles","user":{"login":"iBeliever","id":3230912,"avatar_url":"https://avatars.githubusercontent.com/u/3230912?v=3","gravatar_id":"","url":"https://api.github.com/users/iBeliever","html_url":"https://github.com/iBeliever","followers_url":"https://api.github.com/users/iBeliever/followers","following_url":"https://api.github.com/users/iBeliever/following{/other_user}","gists_url":"https://api.github.com/users/iBeliever/gists{/gist_id}","starred_url":"https://api.github.com/users/iBeliever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBeliever/subscriptions","organizations_url":"https://api.github.com/users/iBeliever/orgs","repos_url":"https://api.github.com/users/iBeliever/repos","events_url":"https://api.github.com/users/iBeliever/events{/privacy}","received_events_url":"https://api.github.com/users/iBeliever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/papyros/qml-material/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/papyros/qml-material/labels/upstream","name":"upstream","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/papyros/qml-material/milestones/1","html_url":"https://github.com/papyros/qml-material/milestones/Version%200.1","labels_url":"https://api.github.com/repos/papyros/qml-material/milestones/1/labels","id":876969,"number":1,"title":"Version 0.1","description":"Release an initial working version, with a simple example project. All blocking bugs should be fixed, and there should be a useful set of UI components.","creator":{"login":"iBeliever","id":3230912,"avatar_url":"https://avatars.githubusercontent.com/u/3230912?v=3","gravatar_id":"","url":"https://api.github.com/users/iBeliever","html_url":"https://github.com/iBeliever","followers_url":"https://api.github.com/users/iBeliever/followers","following_url":"https://api.github.com/users/iBeliever/following{/other_user}","gists_url":"https://api.github.com/users/iBeliever/gists{/gist_id}","starred_url":"https://api.github.com/users/iBeliever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBeliever/subscriptions","organizations_url":"https://api.github.com/users/iBeliever/orgs","repos_url":"https://api.github.com/users/iBeliever/repos","events_url":"https://api.github.com/users/iBeliever/events{/privacy}","received_events_url":"https://api.github.com/users/iBeliever/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":20,"state":"open","created_at":"2014-11-22T20:09:24Z","updated_at":"2015-04-17T19:02:55Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-12-15T17:02:01Z","updated_at":"2015-04-17T19:02:55Z","closed_at":"2015-04-17T19:02:55Z","body":"Upstream bug in Qt: https://bugreports.qt-project.org/browse/QTBUG-30851\r\n\r\n> We use the default Android font in our embedded application:\r\n> http://developer.android.com/design/style/typography.html\r\n> \r\n> We want to use different flavors  of this font (Regular, Light, Bold, Medium) in our app.\r\n> \r\n> However, from QML, the font can only be specified by \"font.family\". All of these .ttf files contain the same font family name (which makes sense).\r\n> \r\n> Setting font.bold to true on the Roboto Regular font produces a different end result than using the `Roboto-bold.ttf` file.\r\n> Likewise, playing around with `font.weight` does not yield any decent result. Both of these seem to process the existing font instead of looking for the different flavors of the font (like native applications do).\r\n> We need a way of accessing the different flavors of a font from QML.\r\n> \r\n> For now, we have worked around this issue by editing the Roboto font and changing the \"Family name\" field and saving them as totally different fonts.\r\n\r\nIt looks like we'll have to work around this by renaming the various Roboto variants.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7031446-support-the-different-roboto-styles-styles?utm_campaign=plugin&utm_content=tracker%2F7838182&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7838182&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}