Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3424338
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:27:45+00:00 2026-05-18T06:27:45+00:00

Good morning, I face a curious bug as I try to set a fontstyle

  • 0

Good morning,

I face a curious bug as I try to set a fontstyle in a mx:Panel object in Flex.

<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"    
          xmlns:s="library://ns.adobe.com/flex/spark" 
          xmlns:mx="library://ns.adobe.com/flex/mx"
          layout="absolute" title="Test"
          titleStyleName="titleAssumed" >


    <mx:Label x="0" y="-5" styleName="othersAssumed" />
    <mx:Label x="0" y="16" styleName="othersAssumed"/>

The associated CSS file contains the following relevant styles:

/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

@font-face{
    src: url("ttf\\ControlSign Bold.ttf");
    fontFamily: ControlSign;
    fontWeight: bold;
}

@font-face{
src: url("ttf\\ControlMono Regular.ttf");
fontFamily: ControlMono;
}

.titleAssumed
{
fontFamily: ControlSign;
font-weight: bold;
font-size: 12;
color: #FFFFFF;
} 

.othersAssumed
{
fontFamily: ControlMono;
font-size: 15;
color: #ADADAD;
}

With this configuration, and once I have set the compiler properties in Eclipse for the compiler to use the Flash text engine for MX components, I can see the two labels of the Panel in the correct font and style ; but the Panel’s title will not show up. Even if I add the “embedAsCff: false” line to my style .titleAssumed, the title refuses to show up.

Any idea about what could be causing the trouble? Thanks !

EDIT: syntax error fixed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:27:45+00:00Added an answer on May 18, 2026 at 6:27 am

    You need to set embedAsCFF: true in your font. Also you have a syntax error where you are not closing your curly brackets on the fonts. Below is an example and here are some more.

    @font-face{
        src: url("ttf\\ControlSign Bold.ttf");
        fontFamily: ControlSign;
        fontWeight: bold;
        embedAsCFF: true; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Morning, Is it possible to map assembly requests to the version within another
Good morning gang. I have a jQuery Datepicker object that is prepoulated using a
Good morning. I have an XML file which contains lists of warning and errors
Good morning, we try to do a research if we can use OSM for
Good morning, I have mysql queries where I would like to calculate percentage of
Good morning, I am currently developing a java web application that exposes a web
Good Morning. I have two tables, and one references the other. When I insert
Good morning. I've been having this issue for some days and have been lokking
Good morning, I am building a website to act as a Foxpro front end.
Good Morning, I have a very odd error working in adobe flexbuilder 3. Ever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.