Highlighted

Embedded fonts not working

New Here ,
Jun 22, 2015

Copy link to clipboard

Copied

When I debug the app on AIR simulator, the embedded font is rendered properly to all components. When I export to the device, the embedded fonts don't show up. Any suggestions?

I am using Flash Builder 4.7 and Apache Flex 4.14.1 SDK. Testing device is Samsung Galaxy Note III.

@font-face {

src: url("assets/SourceSansPro-Regular.otf");

fontFamily: "Source Sans Pro";

fontWeight: normal;

embedAsCFF: true;

}

src: url("assets/SourceSansPro-Regular.otf");

fontFamily: "Source Sans Pro 2";

fontWeight: normal;

embedAsCFF: false;

}

 

@font-face {

src: url("assets/SourceSansPro-Bold.otf");

fontFamily: "Source Sans Pro";

fontWeight: bold;

embedAsCFF: true;

}

 

@font-face {

src: url("assets/SourceSansPro-Bold.otf");

fontFamily: "Source Sans Pro 2";

fontWeight: bold;

embedAsCFF: false;

}

s|TextInput
{
fontFamily: Source Sans Pro;
}

s|Button
{
fontFamily: Source Sans Pro 2;
}

s|Label
{
fontFamily: Source Sans Pro;

TOPICS
Performance issues

Views

247

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Embedded fonts not working

New Here ,
Jun 22, 2015

Copy link to clipboard

Copied

When I debug the app on AIR simulator, the embedded font is rendered properly to all components. When I export to the device, the embedded fonts don't show up. Any suggestions?

I am using Flash Builder 4.7 and Apache Flex 4.14.1 SDK. Testing device is Samsung Galaxy Note III.

@font-face {

src: url("assets/SourceSansPro-Regular.otf");

fontFamily: "Source Sans Pro";

fontWeight: normal;

embedAsCFF: true;

}

src: url("assets/SourceSansPro-Regular.otf");

fontFamily: "Source Sans Pro 2";

fontWeight: normal;

embedAsCFF: false;

}

 

@font-face {

src: url("assets/SourceSansPro-Bold.otf");

fontFamily: "Source Sans Pro";

fontWeight: bold;

embedAsCFF: true;

}

 

@font-face {

src: url("assets/SourceSansPro-Bold.otf");

fontFamily: "Source Sans Pro 2";

fontWeight: bold;

embedAsCFF: false;

}

s|TextInput
{
fontFamily: Source Sans Pro;
}

s|Button
{
fontFamily: Source Sans Pro 2;
}

s|Label
{
fontFamily: Source Sans Pro;

TOPICS
Performance issues

Views

248

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 22, 2015 0

Have something to add?

Join the conversation