So the way it looks like I encountered this bug, was that I added the embed lines to the mxml file and compiled before I actually copied the font file to the location. It correctly displayed the error message. I then copied the font file to where it should be and attempted to rebuild. Then it kept displaying the error message. The error message didn't go away until I made some other edit to the mxml file which seems to have triggered it to really do a rebuild, which it didn't seem to be really doing before. I hope this helps someone else...
-- Matthew
On 6/24/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:
I am getting wierd results while trying to embed fonts in my application. Many times it reports:
Warning /Penguin/SurveyProperties/EditSurvey.mxml:53Font not found at: file:C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/flex/Penguin/SurveyProperties/VERDANA.TTF
This simply isn't true. The font file IS there and I made sure that the permissions on the file were barn door open wide.
Here's the embed lines I am using:
<mx:Style>
@font-face
{
fontFamily: VerdanaBold;
src:url("VERDANA.TTF");
font-weight: bold;
}
@font-face
{
fontFamily: VerdanaNormal;
src:url("VERDANA.TTF");
font-weight: normal;
}
</mx:Style>
I have found this to work fine on some apps, and on others it just breaks like this. I cannot see what the difference is between the working apps and the non-working apps... any insight would be greatly appreciated, thank you,
-- Matthew
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.