Community Questions & Answers

Orientation changes WebView font size

Currently on the iPhone simulator: I have a simple WebView loading some simple HTML. Everything looks fine in portrait, but when I rotate the simulator to landscape, the text is suddenly much larger. Rotate it to landscape (reversed), the text is still...

Alloy Webview HTML Custom Font

Hi, I have been trying everything I can find in the Q&A and documentation but nothing works. I am trying to get a Custom Font to work in a HTML Webview in Alloy. Has anyone been able to get a Custom font to work in a Webview? If so please let me...

Label fonts

Hi, Im wondering how to use the font parameter, because i want to set a labels font to be something else then the default one. I have tried alot but dont seem to get it working. Any advice?

Change picker's fontSize in android.

Hi all, I want to change the picker's fontSize on android, I can change the height and width but cannot change the fontSize, so if the width is too small for the default fontSize, the text in shown like this (pic... instead of picker). Is there anyway to...

Compatible layout

I am implementing something like this: index.xml ~~~ <Alloy> <Window class="container"> <Label id="labelTest">Test Label</Label> </Window> </Alloy> ~~~ index.js ~~~ var screenWidth =...

Custom fonts in mobile web

I'm trying to figure out the best way to add custom fonts to mobile web, but I am having no luck. Below is my code. Any thoughts would be appreciated. ~~~ var headerText = Ti.UI.createLabel({ color: '#FFFFFF', text: 'MANUAL', font:{...

passwordMask + custom font on Android

I cannot make TextField use custom font when passwordMask is set to true: ~~~ var passwordEntry = Ti.UI.createTextField({ font: {fontFamily:"Roboto-Light", fontSize:'16dp'}, hintText:'Password', passwordMask:true, }); ~~~ Is it some...

Alloy Android: Custom font not working

I'm trying to include the following font inside my android project: http://www.dafont.com/dj-gross.font I've put it inside app/assets and have the following test app: Tss: ~~~ "Label":{ font:{ fontFamily:"DJ Gross" } } ~~~ I've...

Alloy - Flatten the font styles

Hi, I'm having the same problem as this thread: [Is it possible to use a default font for all labels troughout the app? my solution with themes in alloy doesnt...

Fonts

How to insert custom fonts for android. I am using 3.1.3.GA sdk and 2.3.4 Android emulator. In docs they mentioned to place it in resource folder but there is no resources folder. Am using Alloys structure.

Best way to Style fonts etc...

What is the best way to style your text objects in your app? I read about jss, also see bad things, does it work or is there a better alternative over properties per object? Thanks

Sepcifying font for entire app

Hello, How can I specify my font to be Duru Sans & Muli for the entire app. i dont want for every label i create to specify font..just want default quickly be Duru Sans & Muli thank you

Font

hai all how can i make font to set into any screen (compatibly) in titanium

Kerning of a font

Hi, does someone know if it is possible to change the kerning of a font that i use in a label? /Magnus

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...

Custom font renders blurry sometimes on iOS/iPad

See [screenshot](https://dl.dropboxusercontent.com/u/2733882/Screen%20Shot%202013-05-10%20at%2011.28.51%20PM.png) We're using a few custom fonts in our app and we're finding that the font displays blurry in some spots, but only on non-retina iPads. The...

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+

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', ...

Showing 1-50 of 193 1 2 3 4