Community Questions & Answers

Titanium Studio code font size keep shrinking

I am using Titanium Studio, build: 2.0.2.201205041518 Every time I paste code from another app, or quit and re-open a file, the code font has gone down to like 9 pt type. My preferences are for Menlo 12pt. I have to open prefs, change the size or font...

iOS - problems with fonts

Good evening, i want change the font from a label. I had read the documentation but it does not work for me. http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts I try many fonts like "Arial" or "Helvetica" also i...

Font Family Picker

I am planning to make font picker using Alloy but before I can start I have few question regarding this. How do I get the default list of font family e.g in android so I can display it for picking? If I use custom font, do I simply put the .otf file inside...

Embed fonts on iOS?

Is there a way to embed a font (such as an OTF or EOT) in a resources folder and then use that font in labels and such? ----- SDK 1.7.2, OS 10.7.1, iOS 4+

Custom Fonts and styles

Hello, I recently managed to install "Myriad Pro" on the iPhone. I registered 3 versions: 1. MyriadPro-Regular.otf 2. MyriadPro-Semibold.otf 3. MyriadPro-Conf.otf I can select the font by the property fontFamily but how can I change the...

Specifying font weights using custom fonts in iOS

Hi all, I'm tearing my hair out over custom fonts on an iOS app. I've used them before with no issue, but only ever using 1 font and not using various weights. So I've done the Plist update, added the 2 fonts I want to use to the Resources folder and...

Custom Fonts in iOS Alloy.

I got trouble to set custom fonts in Alloy project specially in iOS platform for any other font other than default font. Android is running without any modification by same code. Using: ####Mac OS X 10.8.2 (12C3103), Titanium Studio build:...

Global Styles - font-family

Hi all. I'm running under Titanium SDK 3.0.2 and iOS 6.1. Any idea why this doesn't work? `app.js` ~~~ var self = Ti.UI.createWindow({  className:'mainWindowClass' }); var myLabel = Ti.UI.createLabel({ text:'This is a label', ...

Custom Font

In my app I'm trying to use custom fonts (OpenSans.ttf and Montserrat.ttf from Google Web Fonts). I followed all steps from the [docs guide](http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts), but the fonts doesn't show up in my app. I...

Changing default font

Hey Developers, I just got my custom font working, but now I want to have this font set on every label in my app. Is there a way to change the default font into my custom font or do I really have to set the fontFamily property for every single label in my...

Custom fonts on iOS device (1.8.0.1)

We are using a custom font that works fine in the simulator but does not get installed when running on a device. The font is referenced in the generated info.plist file but the otf doesn't get moved to the build resources. I tried copying the file to...

how to set font in .tss file

i have tried this but it did not work "#lbl":{ textAlign:'right', bottom:'75', color:'#fff', font:'{ fontSize:24,fontWeigth:bold }' }

For custom font text shifted top

Hi, I'm using embedded custom fonts (HelveticaNeueLTPro-Bd for example) and all my labels and button titles are shifted top (depending on font size from 5 to 15px). What could cause it? And could I specify offset for button text so I won't need to create a...

LineHeight property on labels?

I seem to recall being able to set the lineHeight (aka "leading") on a text label. That currently has no effect or an unexpected one. I have a label with fontSize: 14 and wanted lineHeight:16 but when I tried that only the first line appeared...

Is it possible to strike-through a text?

I know this is a very stupid question, as the [Font](http://docs.appcelerator.com/titanium/3.0/#!/api/Font) object have no reference to this style, but... Why? It's not supported on any of the platforms? Or is it a limitation of Titanium?

Text takes ages to load

I have a simple label on screen that is incremented when the user presses a button. The number on the label takes ages to update if it is displaying a number that has not been displayed before, however if it is changing to a number that has been displayed...

Label of Text with line-through decoration

How to display text with line-through decoration in a Label ? I will use it to tell user an item is now on discount, so wanna line-through the original price and show the discounted price in normal font. Can it be done by using a single Label instead of...

How to make an italic font ?

Hi - on iOS How can make a italic font? My code: (doesn't works) ~~~ var albumLabel = Ti.UI.createLabel({ font:{fontFamily:'Georgia', fontWeight:'italic'}, top: 12, left: 15, text: 'Select an Album' }); ~~~ Thanks

Font size on different platforms

Titanium sdk: 2.1.1 os: mac os platform: android, ios the same font size behaves differently in different platfroms, it seems that the font is bigger than the one on android. on both platforms, i use the 'system' as the unit...

618 views
asked 9 months ago by kent hao
last activity 9 months ago

Bold one word in label

I'm trying to find out if anyone knows how to do this. I will have a sentence in a iPad app giving the user the result. It wil be like... This is a test, you scored 1234.45 more then 857.24. I would like the 2 numbers in that sentence to be bold....

Custom font issues

I am using a custom font. However, I want to use a different weight (ie bold). Setting fontWeight to bold in the font object does not do it. It seems I need the bold version of the same font. I tried adding this bold version of the font but could not...

Showing 1-50 of 168 1 2 3 4