Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12664] CLI: Mobile Web: Add support for TTF fonts and spaces in font name

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-12T21:16:44.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2013 Sprint 05 JS, 2013 Sprint 05
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2013-02-11T19:15:43.000+0000
Updated2017-03-14T17:54:39.000+0000

Description

Right now Mobile Web only support OTF and WOFF fonts. We need to also add support for TTF. Look at mobileweb/cli/commands/_build.js around line 727.

Attachments

FileDateSize
Snowburst One.woff2013-03-03T02:17:56.000+000029156

Comments

  1. Chris Barber 2013-03-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3927 Test case:
       var win = Ti.UI.createWindow({
       	backgroundColor: 'yellow'
       });
       
       var label = Ti.UI.createLabel({
       	text: 'howdy!',
       	font: {
       		fontSize: 20,
       		fontFamily: "Snowburst One"
       	}
       });
       
       win.add(label);
       win.open();
       
    A woff web font is attached. Place anywhere in the Resources directory. I know it's not a ttf, but it's more of a test of spaces in the filename.
  2. Paras Mishra 2013-05-10

    Text is displayed in woff font. Verified using: SDK: 3.1.1.v20130509173053 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201305092424 XCode : 4.5.1
  3. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source