Fix Font Styling
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:
- ubuntu-13.04-month-6
- Started by
- Zsombor Egri
- Completed by
- Zsombor Egri
Related branches
Related bugs
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.
Text {
Theming.
property string fontSize: “medium”
font.pixelSize: FontUtils.
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.