Fix Font Styling

Registered by Zsombor Egri

Font styling causes Label styling not to succeed in certain circumstances.

Blueprint information

Status:
Complete
Approver:
Zoltan Balogh
Priority:
Undefined
Drafter:
Zsombor Egri
Direction:
Needs approval
Assignee:
Zsombor Egri
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon ubuntu-13.04-month-6
Started by
Zsombor Egri
Completed by
Zsombor Egri

Related branches

Sprints

Whiteboard

Having the following implementation of Label sometimes does not update the font’s pixelSize, though the fontSize property is altered and the FontUtils.sizeToPixels() also returns the altered value.

Text {
    Theming.ItemStyle.class: “label”
    property string fontSize: “medium”
    font.pixelSize: FontUtils.sizeToPixels(fontSize)
    font.family: “Ubuntu”
}

Automatic styling is also banned as font's pixelSize change or even family assignment causes fontChanged() signal emission.
Solution proposal: a font proxy implementation which emits signals for each property change separately, enabling more detailed monitoring of individual font properties. Beside that enables us to include the size property under font, making the API more consistent.

(?)

Work Items

Work items:
Create FontProxy type: INPROGRESS
Integrate with automatic styling: INPROGRESS
Update theme parser to be able to merge font properties declared as JSON objects: TODO

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.