Font transcoding error – specify font style
February 5, 2009 at 11:46 PM | In Flex / AS, Programming | 1 CommentTags: css, embed font, embedded font, flex, font, font-style, transcode, transcoding error
Flex SDK has rich set of font managers. Those 3 (Batik, AFE, JRE) manage and transcode to flash player fonts.
However, using following code in CSS caused comile time exception.
“exception during transcoding: Font for alias ‘Arial Bold’ with plain weight and style was not found at…”
@font-face
{
src: url('/assets/fonts/arial-bold.ttf');
fontFamily: "Arial Bold";
}
@font-face
{
src: url('/assets/fonts/arial-bold-italic.ttf');
fontFamily: "Arial Bold Italic";
}
The perfect solution that I could find was that I also need to specify font weight & style in CSS, as per the type of font, I am embedding.
Here is the perfect solution:
@font-face
{
src: url('/assets/fonts/arial-bold.ttf');
fontFamily: "Arial Bold";
font-weight:bold;
}
@font-face
{
src: url('/assets/fonts/arial-bold-italic.ttf');
fontFamily: "Arial Bold Italic";
font-weight:bold;
font-style:italic;
}
Flex SDK is really very smart in this case. It actually detects that the font supplied is of which type effect – bold, italics or both.
More on font managers is here.
1 Comment »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Navigate
-
Recent Posts
-
Top Posts
- alpha & rotation issue for textArea with htmlText
- Ad Hoc Wireless Networking with Ubuntu
- Flex (Flash Player) - DPI and input/output
- Simple solution to a complex problem - customized Rich Text Editor
- Flash Player and Text
- Font transcoding error - specify font style
- Holi – color-full festival
- 3 ways to get control in Flex over user input through Keyboard
- Bus time table - an SMS away!
Blogroll
Gujarati
RSS
Visitors
Archieves
Tags
actionscript adobe ahmedabad bihar bsnl bug Camera celebration code css digital eclipse email firefox flex flex 3 flex 4 flex sdk font fwd Google gujarat harit kothari home icici image India Internet ip IT jain jharkhand magazine Management mozilla network Photography Programming sdk Security sms Story twitter university VacationCategory Cloud
-
Recent Comments
‘Post’ Calendar
-
Blog Stats
- 11,020 hits
Current Visitor Count

Tweets
- @abhishekdesai if it is so, they will pay cost.... in fact from day before yesterday it's slowly started! written 3 weeks ago
- @abhishekdesai i have little respect for the company so dont want to show naked thief in open! written 3 weeks ago
- ahmedabad's 'biggest' IT company breaches contract (with employee)! #alert #IT #ahmedabad #fail written 3 weeks ago
- experiencing gmail very slow with standard view! :( written 1 month ago
- wishing all netizen friends a very happy diwali! :) written 1 month ago
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

thank you so much haritkothari,
I have stuck at this problem for a week, and you came up with this solution like an angel help me out of this trouble…
Great info!
Comment by martin widjaja — March 18, 2009 #