[TIMOB-15028] Blackberry: Support custom fonts
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Hold |
Resolution Date | 2015-04-14T17:12:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | look1 |
Reporter | Pedro Enrique |
Assignee | Pedro Enrique |
Created | 2013-09-03T12:46:41.000+0000 |
Updated | 2017-03-16T20:25:37.000+0000 |
Description
The Ti Blackberry SDK needs to support custom fonts, just like Android and iOS.
After some research, these are my findings. Custom fonts are supported on BB SDK 10.2.0 and above. We currently compile 10.0.9. This is not so much a problem, there is an internal macro that can be used to check for OS version. This could be used. According to the BB documentation, the custom fonts can only be used through QML - BB's declarative UI framework, and not programatically. This is the biggest limitation. More detailed information here: http://developer.blackberry.com/native/reference/cascades/bb__cascades__fontfacerule.html I will update this ticket as I come across more details.
Does this solve the programatic issue? Label inherits from AbstractTextControl. TextStyleDefinition* tsd = labelCustFont->textStyle(); tsd->setColor(Color::Blue); QString fontFamily = "Times New Roman"; tsd->setFontFamily(fontFamily);
Any ETA if/when this will be looked at?
Bump looking for this as well
Placing these items on hold for the moment based on community interest.
Closing ticket as BlackBerry is no longer supported by us.