Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13074

iOS: Unable to reference multiple variations of same font

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium Studio 3.0.2, Titanium SDK 3.0.2GA, iOS (iPad), Mac OSX 10.8.2

      Description

      We're trying to use multiple variations of the same font in a Titanium Mobile iPad application. I've attached the fonts to this issue. Specifically, we're trying to use "Open Sans" and "Open Sans Light". We're able to successfully reference both fonts in our app, but both render as "Open Sans Light" and we're unable to get our app to use "Open Sans".

      Here's our XML code our Alloy view:

      <Alloy>
      	<Window class="activationWindow">
      		<ImageView class="logo" image="Logo-White.png"></ImageView>
      		<Label class="revolutionize" text="Revolutionize your kitchen.">
       
      		<Label class="yourName" text="Your Name">
      		<TextField class="yourNameText" hintText="Brad Jones">
      	</Window>
      </Alloy>
      

      .. and here's our TSS code:

      ".logo": {
      	top: 322,
      	left: 74,
      	width: 342,
      	height: 65
      },
       
      ".revolutionize": {
      	top: 405,
      	left: 73,
      	font: {fontFamily: "Open Sans Light", fontSize: "26"},
      	color: "#ffffff"
      },
       
      ".yourName": {
      	top: 251,
      	left: 566,
      	font: {fontFamily: "Open Sans", fontSize: "17"},
      	color: "#a1a1a1"
      },
       
      ".yourNameText": {
      	top: 279,
      	left: 566,
      	width: 364,
      	height: 45
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shawncberg Shawn Berg
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15902
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code