08-22-2012 05:54 AM
Hello,
I want to use different font on each text in my app,
I want to use Helvetica font.
I found that in each text style only sans serif and serif fonts are supported.
So how can I apply helvetica font in my application.
Thanks in advance
bskania.
08-22-2012 02:41 PM
Have you looked at the QML properties pane in Momentics?
Once you create a TextField in your QML document and place your cursor in it, the QML Properties pane will change accordingly. Here is an example of a customized TextField:
TextField {
textStyle.fontStyle: FontStyle.Italic
textStyle.fontWeight: FontWeight.Normal
text: "TESTING"
textStyle.fontStyleHint: FontStyleHint.Serif
textStyle.fontFamily: "Helvetica"
}
Cheers,
Martin
08-23-2012 01:24 AM
yes I had looked at the QML properties pane in Momentics.
In that 3 fonts are there.
"default"
"Sans serif"
and "serif"
bskania
08-30-2012 11:29 AM
These three options reflect the FontStyleHint; The actual font is selected using the "textStyle.fontFamily" property.
Have you tried setting this to a specific font e.g.: textStyle.fontFamily: "Helvetica"
Are you able to see changes to the font with this line?
09-01-2012 02:37 PM
I am having the same issue as the original poster... no matter what I change the textStyle.fontFamily: "" or the textStyle{ fontFamily: ""} to it doesn't change the font. Also on that note changing from "serif" to "sansserif" that doesn't change as it should either.
09-04-2012 10:32 AM
At this point, I would encourage to post an issue in the Issue Tracking system as fonts should be working with these properties.
Issue tracker:
https://www.blackberry.com/jira/secure/Dashboard.j
Please post the Issue's link here afterwards, I will change visibility to public so others can vote on it.
Thanks!
Maritn
09-04-2012 10:46 AM
09-04-2012 10:54 AM
JIRA ticket created: BBTEN-235
09-05-2012 09:45 AM
Great, thank you!
Martin
01-05-2013 03:46 AM
It would appear that there is still no ability to set FontFamily in Cascades in the current version? The bug report is still open, and I can't find any information on a work-around.
It would be nice to have a monospaced font choice for the app we're doing, but currently this does not appear to be possible. The inability to use other fonts in Cascades is a bit odd.