[Interest] qt.labs.controls - Material - Fonts

Nikita Krupenko krnekit at gmail.com
Wed Apr 13 19:46:01 CEST 2016


2016-04-13 20:33 GMT+03:00 ekke <ekke at ekkes-corner.org>:
> Am 13.04.16 um 19:02 schrieb Nikita Krupenko:
>> 2016-04-13 0:35 GMT+03:00 ekke <ekke at ekkes-corner.org>:
>>> I'm looking HowTo get the right font styles for Material Display,
>>> Headline, Title, Subheading, Body
>>>
>>> Are there any hints about available font.family and preffered sizes to
>>> follow
>>> https://www.google.com/design/spec/style/typography.html#typography-styles
>> Controls from Material theme should have proper fonts in most cases.
>> If they hasn't - don't hesitate to file a bug ;)
> already did this and JP Nurmi already fixed :)
> fonts are looking great
>
> but per ex. Label can be used for body text, subheading etc. so I have
> to create my own for this

If you using Material style, font (Roboto/Noto) would be already set,
so you can just do

Label {
    font.pixelSize: 16
}

to create label with subheading font.

>> If you are talking about creating own controls, proper fonts usually
>> specified in dedicated page for that control, for example
>> https://www.google.com/design/spec/components/lists.html Though,
>> sometimes information in spec don't really clear.
> so I can use same Font names ?
> is there a list what's part of qt.labs Material ?

There is no Body, Subheading, etc fonts in Qt.labs Material. The font
just set for specific controls.



More information about the Interest mailing list