A lot of time waisted on embedding fonts! Please advise!

I am trying to embed this (attached) font for the second day! I know that it is not how it should be. Please help me if you know how.
This is Mac.
I added this font in Flash library and also created a dynamic field with it and embedded it from there.
Then in Flash Builder (original SDK 4.0):
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
@font-face
    src: url("assets/fonts/fonts.swf");
    fontFamily: "12 pt. Helvetica* 75 Bold   07472";
    embedAsCFF: true;
.redHeader
font-family: "12 pt. Helvetica* 75 Bold   07472";
font-size: 20;
color: #9e0b0f;
It compiles without errors, but instead of this font it uses some default font.

it says:
transcoding parameter 'embedAsCFF' is not supported by 'flex2.compiler.media.MovieTranscoder' 
however I am using in on spark:Label.
[Embed(source="assets/fonts/fonts.swf", fontName="Myriad Pro Bold")]
public static var myriadProFont:Class;
compiles and finds the font but later on
.redHeader
    font-family: "Myriad Pro Bold";
    font-size: 20;
    color: #9e0b0f;
assigned to the label is not working.
Straight inclusion through embed tag is working for this font.
May be something wrong with embedding into swf, but in this case flex wouldn't find it and would give an error.

Similar Messages

  • Trying to save A LOT of time with this...please help!

    You guys are going to think I'm crazy
    I love my bass guitar, and also my new Mac. So I decided I'd make some practice scales and stuff to follow along with in GarageBand. That was two days ago; I've made over 1000 scales since then. (I got to be pretty quick: I can make 15 scales in about 3 minutes.)
    Here was my idea: make some scales at a comfortable tempo, play along with them until I've done all of them, increase the tempo by 10bpm and play them all over again. Repeat until 240bpm is reached.
    It's going to take me probably another day to finish all the scales I have in mind. After that I just kind of thought that once they were made it'd be no big deal to go through and change the tempo on all of them and re-share them to iTunes. WRONG, the fastest way I can think of would be to remake all of them again. That is something I do NOT want to do. Which leads me to my question (finally):
    Is there ANY way to change the tempo of multiple, separate songs, simultaneously? or even outside of GarageBand? (or even writing a short program that autonomously changes a line of code in each song file to alter the tempo?) And, is there anyway to mass-share a bunch of garageband files to iTunes so I don't have to open each one up individually?
    I hope those questions make sense. In case anyone needs to know, I used a software instrument in the creation of the scales. Thanks to anyone who considers my problem here!

    They can if they login into adobe and create a free adobe account.
    Several people have requested the ability to share and comment without an Adobe ID.  Please add your vote and opinion: Lightroom Mobile: Client commenting, rating and liking collections without Adobe ID

  • Do embedded fonts work in TextFlow yet?

    Embedded fonts aren't working for me in TextFlow for SDK build 8537. I added the embedAsCFF: true thing, and the font does show up in Spark controls; it's just not working when I use it in TextFlow (defaults to Times). Non-embedded fonts are working fine though in TextFlow, the problem is only with the embedded ones. Is this a known issue at this time?

    Turns out this is because of the linkage setting to RSLs in the newer SDK builds, Adobe is looking at this. Check outhttp://forums.adobe.com/message/2121775#2121775 for details/workaround.

  • How to show embedded and not embedded font in TextField at the same time?

    Hi guys,
    I need to show embedded and not embedded font in my TextField at the same time. TextField has embedFonts = true and isHTML = true.
    Any ideas?

    Two different font won't work for me because I need to support all UTF glyphs.
    Idea with two TextFields one on top of other seems to be working. The only problem I see here - if half string is Chinese and hand Latin - then it will be quite problematic to properly position text...

  • Fully embedding fonts in PDF

    Hi,
    I had a piece of information but I can't seem to find it anymore so I have to ask ...
    This is about understanding limitations of fully embedding fonts in a PDF (from Indesign Server). Actually it's about one limitation in particular. I know fonts with licensing issues or fonts that are marked "embedded not allowed" will not be embedded. Also, there is a threshold that I need to set.
    So, I recall reading somewhere that Indesign will not fully embed "standard" fonts. Is that correct and what is this standard fonts category?
    Oh, reading through some posts, I noticed lots of people and experts ask why does one need fully embedded fonts. That's a good question and I don't know the root reason but in my case it seems that some regulatory agencies (in the life sciences/pharma domain) require PDFs with fully embedded fonts.
    Many thanks
    Cristian

    On behalf of Adobe:
    (1)     For both InDesign “PDF export” (including InDesign Server) and Illustrator “save as PDF” functions, most but not all of the .joboptions file font embedding options are totally and utterly ignored. The options that are ignored are the Embed all fonts, Embed OpenType fonts, Always embed, and Never embed. Those options are observed by Distiller and the PDFMaker components of Acrobat.
    (2)     These applications will attempt to embed all fonts referenced by the document, regardless of the settings of the .joboptions file. The only reason why a font would not be embedded in a PDF file would be if (a) the font was unavailable (i.e., not installed on the system) or (b) the font's embedding permissions do not permit embedding for at least preview and print privileges. Thus, if you use the so-called Standard .joboptions (strongly not recommended for any graphic arts purposes), even the base 14 fonts (four faces each of Helvetica, Times, and Courier along with Symbol and ITC Zapf Dingbats will be embedded if your document references them.
    (3)     The subset threshold value of 0 (zero) may effectively cause all the glyphs of a font to be embedded in some, but not all cases. This will work for many if not most Type 1 fonts and some smaller TrueType and OpenType CFF fonts. Note that embedding all glyphs in a font is not the same as embedding a full font. For OpenType and TrueType fonts, InDesign and Illustrator never embed all the tables of the font. Such unembedded tables include those used for pair kerning, advanced OpenType features (such as ligatures, alternate representations, contextual alternates, small caps, old style figures, etc.), and extended metrics.
    (4)     There are plenty of bubbameissas out there with regards to the benefits or liabilities of either fully embedding or subset embedding fonts. What is true is that: (a) Acrobat never uses the embedded font for text editing - you must have the font installed on the system in order to do such edits. (b) Subset embedding or not is totally irrelevant to what a RIP does when rendering text, either for PostScript or direct PDF RIPs. Neither subset or full embedding is any more reliable than the other and the specifications of PostScript and PDF do not permit the RIP to replace the embedded font with a font with a similar name - urban legend notwithstanding!!!! (c) Third party plug-ins to Acrobat or applications that claim to allow you to edit PDF files with embedded fonts may be illegally letting you do so if the embedding permissions do not permit embedding for editable embedding or installable embedding - most fonts do not provide such embedding permissions and since the fonts are missing metric information, such editing may be somewhat lacking in quality or features.
    (5)     In fact some very non-tech-savvy organizations have posted requirements for full embedding of fonts in submitted PDF files (I have personally seen one such requirement by some international bureaucracy). They can post such bone-headed requirements based on limited understanding of PDF and PDF workflows, but that doesn't mean that anybody actually provides such PDF files. If in fact you run into such requirements, I would appreciate it if references to same can be forwarded to my attention by private message on these forums.
              - Dov

  • Arial embedded font displaying jumbled on another user's machine

    I have a PDF document that uses an Arial embedded font and it looks fine on my machine, but looks like this on one of my end user's machines:
    In researching this problem all the advice points to a problem with the font, but it's just the common Arial font and it is listed as embedded. Or at least, I think it is, Arial shows up in the font list for the PDF properties 3 times, and if I use the Touchup Text tool, select the text and look at Properties, it says "Cannot embed font" although both embed and subset checkboxes are checked and disabled.
    Can anyone help please?
    -VG_mnet
    P.s. I should have mentioned that it shows jumbled on my machine too when the user emailed it to me.  I'm on Adobe Pro version 9.
    Here is the font list on the PDF properties:

    Thank you again for your help Bill@VT and CtDave.  I did play around with the Distiller but I don't think those options help me much since I do not use either of the options to create the PDF that you mention Bill.  I actually am usually starting with an existing PDF template (that has our logos and a demo title) and then I fill in the rest of the paragraphs, charts, labels and form fields.  So my understanding (now that I have explored) is that the Distiller is used for converting a postscript file to a pdf.  I already have a PDF tho.  Just for yuks, I saved my PDF as a .ps and ran it through the distiller - it correctly embedded all my fonts, but my form fields were all gone. 
    So I moved on to Plan B and looked at the preflights that Dave referred to.  After looking at a lot of instructional web pages that all told me the Preflights were of the View or Tools menu, I finally found it under Advanced->Print Production->Preflights.  I chose the option to Embed fonts (even if text is invisible), and ran it through.  It seemed to work great and maintained my form fields.  Most of my fonts are also now embedded as I had hoped.  I think this will be the way we move forward with all the existing PDFs we have in our system, but I did notice that one font still didn't get embedded.  One of the Arial's (the 1st CID in the screenshot above) is still listed as not embedded even though the other fonts listed are practically identical and are embedded.  This may be a problem on just this one PDF, and the other PDFs in my system appear to not have this issue when I run the preflight, so I'll keep playing with this one PDF, but does anyone have a theory as to why the preflight wasn't able to embed that one CID font?
    Thanks again! You have both been helpful and I've learned some new tricks!
    -VG

  • My JSP page takes a lot of time to go to next JSP

    Hi All,
    I have a JSP page which loads dynamically depending on what the user enters. This page works fine for items upto 20-30 but as the number of items increases, my JSP page takes a lot of time to go to the next one. Heres what my JSP looks like:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/rswtags.tld" prefix="rsw" %>
    <jsp:useBean id="dateFormatIntl" scope="session" type="java.lang.String"/>
    <html>
    <head>
    <title><bean:message key="title.application"/> - <bean:message key='header.return_to_vendor_detail'/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <%@ include file="rsw_functions.jsp" %>
    <%@ include file="shipment_rtv_functions.jsp" %>
    <script language="JavaScript" type="text/javascript">
    var page = "<bean:message key='header.return_to_vendor_detail'/>"
    var rtvEntryArray = new Array();
    var totalAmtString;
    function setFormValues()
    var rtvEntriesString = "";
    for (var v = 0; v < rtvEntryArray.length; v++)
    var rtvEntryString = rtvEntryArray[v].itemNumber + "~"
    + rtvEntryArray[v].itemQty + "~"
    <rsw:display displayElementName="rtv_reason">
    + rtvEntryArray[v].inventoryStatusCode + "~"
    + rtvEntryArray[v].inventoryStatusName + "~"
    + rtvEntryArray[v].reasonCodeId + "~"
    + rtvEntryArray[v].reasonCodeName + "~" +
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    + " " + "~"
    + " " + "~"
    + " " + "~"
    + " " + "~" +
    </rsw:display_false>
    rtvEntryArray[v].valid;
    rtvEntriesString = rtvEntriesString + rtvEntryString + ";";
    document.rtvVsatShipmentForm.rtvEntriesString.value = rtvEntriesString;
    function writeItem(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName)
    if(!acquireFakeLock()) return;
    if (!arrayContainsItem(itemNumber, reasonCodeId))
    addEntry(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, "true");
    else
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName);
    writeTable(false);
         releaseFakeLock();
    function handleApply()
    <%-- change this if 'please select...' value changes to something other than a space --%>
    if (document.rtvVsatShipmentForm.applyReasonCode.value == " ")
    alert('<bean:message key="error.must_enter_a_reason" />');
    return;
    if (checkQuantityGreaterThenZero(document.rtvVsatShipmentForm.applyQty))
    formatQuantity(document.rtvVsatShipmentForm.applyQty);
    if (document.rtvVsatShipmentForm.applyId.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    writeItem(document.rtvVsatShipmentForm.applyId.value,
    document.rtvVsatShipmentForm.applyQty.value
    <rsw:display displayElementName="rtv_reason">,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].value,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].text,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].value,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].text
    </rsw:display>
    document.rtvVsatShipmentForm.applyId.value = '';
    document.rtvVsatShipmentForm.applyQty.value = 1;
    document.rtvVsatShipmentForm.applyId.focus();
    <rsw:display displayElementName="rtv_reason">
    document.rtvVsatShipmentForm.selectedInventoryStatus.value
    = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    </rsw:display>
    totalAmounts();
    function clearFields()
    document.rtvVsatShipmentForm.returnAuth.value = "";
    document.rtvVsatShipmentForm.applyId.value = "";
    document.rtvVsatShipmentForm.applyQty.value = "1";
    document.rtvVsatShipmentForm.applyId.focus();
    document.rtvVsatShipmentForm.selectedInventoryStatus.value = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    function getCurrentOptions()
    if (document.rtvVsatShipmentForm.selectedInventoryStatus.value == "AVAILABLE")
    return availableOptions;
    return unavailableOptions;
    function populateDropDown(dropdownField)
         var currentOptions;
    currentOptions = getCurrentOptions();     
    dropdownField.options.length = 0;
    var oPleaseSelectOption = document.createElement("OPTION");
    oPleaseSelectOption.value = " ";
    oPleaseSelectOption.text = "<bean:message key="label.please_select"/>";
    dropdownField.options.add(oPleaseSelectOption);
    for (var i = 0; i < currentOptions.length; i++)
    dropdownField.options.add(currentOptions);
    function selectFromInvStatus()
    populateDropDown(document.rtvVsatShipmentForm.applyReasonCode);
    function initialize()
    document.rtvVsatShipmentForm.applyId.focus();
    createReasonOptionObjects();
    selectFromInvStatus();
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    document.rtvVsatShipmentForm.returnAuth.focus();
    </logic:equal>
    createEntryArray(document.rtvVsatShipmentForm.rtvEntriesString.value, false);
    <rsw:display displayElementName="rtv_reason">
    </rsw:display>
    totalAmounts();
    function next()
    setFormValues();
    if (document.rtvVsatShipmentForm.rtvEntriesString.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    alert("<bean:message key='error.return_auth_required' />");
    document.rtvVsatShipmentForm.returnAuth.focus();
    return;
    </logic:equal>
    if (!validateTextAreaLength(document.rtvVsatShipmentForm.comments,
    "<bean:message key='label.comments'/>", 255))
    return false;
    document.rtvVsatShipmentForm.submit();
    function doBack()
    backLink.href = "<bean:write name='rtvVsatShipmentForm' property='previousAction' />";
    document.rtvVsatShipmentForm.action=backLink.href;
    document.rtvVsatShipmentForm.submit();
    function handleItemLookup()
    window.open(itemLookupLink.href + "?actionToReturnTo=shipment_rtv_vsat_create&fieldToPopulateUponReturn=applyId","RSWLookupWindow");
    </script>
    <jsp:include page="/elements/top_banner2.jsp" flush="true"/>
    <!-- Beginning of Page Body -->
    <body onload="initialize();displayErrors();">
    <form:form action="shipment_rtv_vsat_to_summary.do" style="margin-top:0">
    <input type="hidden" name="fieldToPopulateUponReturn" value="applyId">
    <span style="display:none">
    <html:link styleId="itemLookupLink" href="item_lookup_start.do"></html:link>
    <html:link styleId="backLink" href="dummyLink"></html:link>
    </span>
    <html:hidden property="rtvEntriesString"/>
    <form:hidden property="fromLocationId" />
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell" rowspan="3"></td>
    <td class="bodymd" width="125">
    <bean:message key="label.rtv_number" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="rtvNumber" />
    </td>
    <td class="bodymd">
    </td>
    <td class="bodymd">
    <bean:message key= "label.date" />: 
    </td>
    <td class="bodymd" align="left">
    <bean:write name="rtvVsatShipmentForm" property="createDate"/>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    <td colspan="3"></td>
    <logic:equal name="dateFormatIntl" value="true">
    <td align="left" valign="top" class="bodymd">
    <span class="bodyxsm">(<bean:message key="label.date_format_string_intl"/>)</span>
    </td>
    </logic:equal>
    <logic:notEqual name="dateFormatIntl" value="true">
    <td>
    <span class="bodyxsm">(<bean:message key="label.date_format_string_us"/>)</span>
    </td>
    </logic:notEqual>
    </tr>
    <tr>
    <td class="bodymd">
    <bean:message key="label.status" />: 
    <td class="bodymd">
    <rsw:display displayElementName="rtv_status">
    <form:select property="selectedStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="statusIds"
    labelProperty="statusNames" />
    </form:select>
    </rsw:display>
    <rsw:display_false displayElementName="rtv_status">
    <bean:write name="rtvNonVsatShipmentForm" property="selectedStatus.description" />
    </rsw:display_false>
    </td>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymd">
    <bean:message key="label.ship_from_location" />:
    </td>
    <td class="bodymd" colspan="5">
    <bean:write name="rtvVsatShipmentForm" property="fromLocationId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.supplier_name" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="supplierName" />
    </td>
    <td class="bodymd" width="125">
    <bean:message key="label.supplier_number" />: 
    </td>
    <td class="bodymd" colspan="3">
    <bean:write name="rtvVsatShipmentForm" property="supplierId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.rtv_paid" />: 
    </td>
    <td class="bodymd" align="left">
    <form:select property="selectedPaymentStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="paymentStatusIds"
    labelProperty="paymentStatusNames" />
    </form:select>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    <%-- <tr>
    <td class="bodymd">
    <bean:message key="label.check_number" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="checkNumber" maxlength="12"/>
    </td>
    </tr>
    --%>
    </table>
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="3">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="bodymd">
    <bean:message key="label.return_authorization_no" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="returnAuth" maxlength="12"/>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.supplier_address" />
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="6">
    <table border="0">
    <tr>
    <td width="10" rowspan="4">
    </td>
    <td class="bodymd">
    <form:text property="addressLine1" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.city" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCity" style="width:200" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine2" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.state_or_province" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressStateOrProvince" style="width:80" />
    </td>
    <td class="bodymd">
    <bean:message key="label.postal_code" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressPostalCode" style="width:80" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine3" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.country" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCountry" style="width:200" />
    </td>
    </tr>
    </table>
    </td>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.comments" />: 
    </td>
    <td>
    <form:textarea property="comments" cols="65" rows="3" onkeypress="limitKeyPress(this, 255)"/>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td colspan="3" class="horizontalLine">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    </table>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymdbold"><bean:message key='label.item'/>: </td>
    <td><form:text size="15" property="applyId"/>  </td>
    <td class="bodymdbold"><bean:message key='label.quantity'/>: </td>
    <td><form:text size="8" maxlength="8" property="applyQty" />  </td>
    <rsw:display displayElementName="rtv_reason">
    <td style="display:none" class="bodymdbold"><bean:message key='label.inventory_status'/>: </td>
    <td style="display:none">
    <form:select property="selectedInventoryStatus" onchange="selectFromInvStatus();">
    <form:options name="rtvVsatShipmentForm" property="inventoryStatusCodes"
    labelProperty="inventoryStatusDescriptions" />
    </form:select>
    </td>
    <td class="bodymdbold"><bean:message key='label.reason_code'/>: </td>
    <td>
    <select name="applyReasonCode">
    <%-- <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="reason">
    <option value="<bean:write name="reason" property="code"/>">
    <bean:write name="reason" property="description"/>
    </option>
    </logic:iterate>
    --%>
    </select>
    </td>
    </rsw:display>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class=bodymd>
    <a class="genericLink" href="" onClick="handleItemLookup(); return false"><bean:message key='link.item'/></a>
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td colspan="9" align="left">
    <br>
    <input type="submit"
    value="<bean:message key='button.apply'/>"
    onClick="handleApply();return false;">  
    <input type="button" value="Clear" onclick="clearFields()";></td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="horizontalWhiteLine" colspan="10"></td>
    </tr>
    </table>
    <table class="bgColor" width="700" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td><rsw:errors/></td>
    </tr>
    </table>
    <div id="item_list_div">
    </div>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="bodymdbold" align="right" nowrap><div id="total_amt_div"></div></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="horizontalLine" colspan="3"></td>
    </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="700">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td align="left">
    <input type="button" value="<bean:message key='button.next'/>"
    onclick="next();">
    <input type=button value="<bean:message key='button.back'/>"
    onclick="doBack();">
    <input type=button value="<bean:message key='button.cancel'/>"
    onclick="doSubmit('main', 'main.do');">
    </td>
    </tr>
    </table>
    </form:form>
    <div id="log"></div>
    </body>
    <!-- End of Page Body -->
    <jsp:include page="/elements/bottom_banner2.jsp" flush="true"/>
    <script language="JavaScript" type="text/javascript">
    function handleAction(retVal,position)
    if (retVal != null)
    var command = retVal["command"];
    if (command == "OK")
    updateArray(retVal["id"],
    formatQuantityFromVar(retVal["qty"]), true,
    <rsw:display displayElementName="rtv_reason">
    retVal["inventoryStatusCode"],
    retVal["inventoryStatusName"],
    retVal["reasonCode"],
    retVal["reasonDescription"],
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    null, null, null, null,
    </rsw:display_false>
    position);
    totalAmounts();
    if (command == "Remove")
    deleteRow(position);
    writeTable(false);
    totalAmounts();
    function showEditWindow(sku, qty,
    <rsw:display displayElementName="rtv_reason">
    inventoryStatusCode, reasonCode,
    </rsw:display>
    position)
    if(!acquireFakeLock()) return;
    var elements = editWindowDiv.document.all;
    elements("editWindowId").value=sku;
    elements("editWindowQty").value = qty;
    <rsw:display displayElementName="rtv_reason">
    elements("editWindowInventoryStatusCode").value = inventoryStatusCode;
    elements("hiddenReasonCode").value = reasonCode;
    </rsw:display>
    var retVal;
    // if (IE6)
    retVal = window.showModalDialog("popup.jsp", editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    else
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    handleAction(retVal,position);
         releaseFakeLock();
    function updateArray(itemNumber, itemQty, fromEditWindow,
    inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, position, supplierCost)
    if (((rtvEntryArray[position].reasonCodeId != reasonCodeId)
    && arrayContainsItem(itemNumber, reasonCodeId))
         ||
         ((rtvEntryArray[position].itemNumber != itemNumber)
         && arrayContainsItemsExceptPos(itemNumber, reasonCodeId, position)))
    deleteRow(position);
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName, supplierCost);
    else
    var rtvEntry = new Object();
    rtvEntry.itemNumber = itemNumber;
    rtvEntry.itemQty = itemQty;
    rtvEntry.inventoryStatusCode = inventoryStatusCode;
    rtvEntry.inventoryStatusName = inventoryStatusName;
    rtvEntry.reasonCodeId = reasonCodeId;
    rtvEntry.reasonCodeName = reasonCodeName;
    rtvEntry.supplierCost = supplierCost;
    rtvEntry.valid = rtvEntryArray[position].valid;
    rtvEntryArray[position] = rtvEntry;
    writeTable();
    </script>
    <div id="editWindowDiv" style="display:none">
    <html>
    <head>
    <style type="text/css">
    .titleTxt { font-size: 12 ; font-style: italic ; font-weight: bold; color: white ; font-family: arial }
    .bodymd {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none}
    .bodymdbold {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none; font-weight: bold}
    .bgColor { background-color: #efefef }
    </style>
    <title><bean:message key="title.edit_window" /></title>
    <script language="JavaScript">
    function handleOk()
    if (checkQuantityGreaterThenZero(document.editPopupForm.editWindowQty))
    var returnArray = new Array();
    returnArray["id"] = document.editPopupForm.editWindowId.value;
    returnArray["qty"] = document.editPopupForm.editWindowQty.value;
    <rsw:display displayElementName="rtv_reason">
    returnArray["inventoryStatusCode"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].value;
    returnArray["inventoryStatusName"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].text;
    returnArray["reasonCode"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].value;
    returnArray["reasonDescription"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].text;
    </rsw:display>
    returnArray["command"] = "OK";
    window.returnValue = returnArray;
    window.close();
    function handleCancel()
    window.close();
    function handleRemove()
    var returnArray = new Array();
    returnArray["command"] = "Remove";
    window.returnValue = returnArray;
    window.close();
    function init()
    document.title = "<bean:message key="title.edit_window" />";
    document.editPopupForm.editWindowQty.focus();
    <rsw:display displayElementName="rtv_reason">
    createReasonOptionObjects();
    setReasonOptions();
    document.editPopupForm.editWindowReasonCode.value = document.editPopupForm.hiddenReasonCode.value;
    </rsw:display>
    <rsw:display displayElementName="rtv_reason">
    function setReasonOptions()
    var currentOptions;
    document.editPopupForm.editWindowReasonCode.options.length = 0;
    if (document.editPopupForm.editWindowInventoryStatusCode.value == "AVAILABLE")
    currentOptions = availableOptions;
    else
    currentOptions = unavailableOptions;
    for (var i = 0; i < currentOptions.length; i++)
    document.editPopupForm.editWindowReasonCode.options.add(currentOptions[i]);
    </rsw:display>
    var availableOptions = new Array();
    var unavailableOptions = new Array();
    <rsw:display displayElementName="rtv_reason">
    function createReasonOptionObjects()
    var oOption;
    <logic:iterate name="rtvVsatShipmentForm" property="availableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    availableOptions[availableOptions.length] = oOption;
    </logic:iterate>
    <logic:iterate name="rtvVsatShipmentForm" property="unavailableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    unavailableOptions[unavailableOptions.length] = oOption;
    </logic:iterate>
    </rsw:display>
    </script>
    <%@ include file="rsw_functions.jsp" %>
    </head>
    <body leftmargin="0" topmargin="0" style="border:4px ridge lightgrey">
    <span style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0">
    <table cellspacing="0" cellpadding="0" border="0" bordercolor="#000000" width="330">
    <tr>
    <td bgcolor="#ff9999" width="100%" height="1" colspan="2"></td>
    </tr>
    <tr>
    <td bgcolor="#ff0000" height="15" align="left"><span
    class=titleTxt>  <bean:message key="label.edit" /> </span></td>
    <td bgcolor="#ff0000" height="15" align="right"><span
    class="titleTxt"><bean:message key="label.application_title" />   </span></td>
    </tr>
    <tr>
    <td bgcolor="#000000" width="100%" height="1" colspan="2"></td>
    </tr>
    </table>
    </span>
    <form name="editPopupForm" style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0"
    onsubmit="handleOk();return false;">
    <input type="hidden" name="editWindowPosition" value="">
    <input type="hidden" name="hiddenReasonCode" value="">
    <table cellspacing='0' class='bgColor' cellpadding='0' border='0' width='330'>
    <tr><td> </td></tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.item'/>:</td>
    <td class='bodymd'><input type="text" name="editWindowId" value="[id]" ></td>
    </tr>
    <tr>
    <!--Start RQST 34502 SIR 61007-->
    <!--td class='bodymd'--><!--  --><!--bean:message key='label.count_quantity'/--><!--:--><!--/td-->
    <td class='bodymd'>  <bean:message key='label.return_quantity'/>:</td>
    <!--End RQST 34502 SIR 61007-->
    <td class='bodymd'><input type="text" maxlength="8" name="editWindowQty" value="[qty]"></td>
    </tr>
    <rsw:display displayElementName="rtv_reason">
    <tr>
    <td style="display:none" class='bodymd'>  <bean:message key='label.inventory_status'/>:</td>
    <td style="display:none" class='bodymd'><select name="editWindowInventoryStatusCode" onchange="setReasonOptions();">
    <option value="AVAILABLE"><bean:message key="label.available"/></option>
    <option value="UNAVAILABLE"><bean:message key="label.unavailable"/></option>
    </select></td>
    </tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.reason_code'/>:</td>
    <td class='bodymd'><select name="editWindowReasonCode">
    <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="editWindowReason">
    <option value="<bean:write name="editWindowReason" property="code"/>">
    <bean:write name="editWindowReason"

    God Lord! Does anyone else here write JSPs that look like that?
    If I had to maintain that I would shoot myself straight in the temple.
    Sorry, I don't have answer to your question, I just had to say that.
    Do you like your job?

  • Xcelsius with BW Queries taking a lot of time to open/save/publish

    I have recently designed my first Dashboard using Xcelsius 2008(5.3.0.0, Build Number 12.3.0.670) connected to BW queries(we are on 7.01 SP 5) using SAP Netweaver BW Connection. While the file size jumped from 3MB(before connecting to BW Queries) to 88 MB (after the connections to BW queries). I have 10 Bex Queries embedded in the Dashboard and every time I'm trying to open the Xcelsius file, it takes a lot of time(as long as 15 minutes) and even if I make a small change and save it, it takes another 15-20 muntes and while Publishing it to BW role it is taking another 15-20 minutes.
    I'm sure we are missing something here and thus running it to this issue. Can someone throw some ideas please?

    Try installing Fix Pack 3.4 on your XCelsius designer. How many rows do your queries fetch?
    Regards,
    Stratos
    PS: 88 MB is not a normal file size. My experience is that the size of a "healthy" dashboard should be less than 1.5 MB

  • How can I create a PDF with embedded fonts (not a subset of the font) from Excel?

    I need to create PDF's from Excel spreadsheets. The PDF needs to have embedded fonts but every time I create one it only has a subset of the embedded font.  I have tried setting preferences in the Acrobat add in (unchecked the "Subset Embedded Fonts" option and also tried with the Subset Embedded Fonts checked but the percentage set to only 1% in an attempt to force full font to be embedded.)
    I also tried opening the resulting PDF with Acrobat Pro XI but could not figure out how to add the font in.
    A method to accomplish the results from either tool would be great.

    Anna;
    Unless you can add those fonts to your system via the Font book and then substitute them in iPhoto, you'll have to either user the available fonts or create your own pages, 8.5 x 11, in an image editor like Photoshop Elements and use them on pages that are one photo per page. Other's have done that with some success.
    If you has PS or PSE create an 8.5 x 11" canvas at 300 dpi. Then you can add your photos, add text (if PS can use the text), and create your own layout.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Embedding fonts in pdf

    Hi there, this questions sounds a bit lame but it got me puzzled. I have to produce a pdf where the client (without any design skills)
    can edit some parts of the text without having the font so the pdf must have embedded fonts.
    When I check the pdf in Acrobat X is says "FontName (embedded subsets)" but when I open this pdf on another machine without that
    specific font and want to edit the text with TouchUp, I get a dialog box saying: "All or part of the selection has no available system font.
    You cannot add or delete text using the currently selected font."
    I'm exporting directly from  ID CS5.5. What am I missing here?

    It's not wheter the font is free or paid, it's waht the internal settings are that determine if a font can be embedded, and if so what use can be made of the embedded font. Though not about ID or PDF, this article from Microsoft gives a good overview of embedding restrictions: http://msdn.microsoft.com/en-us/library/ms533034%28v=vs.85%29.aspx
    That said, if you see the same error message with a lot of different fonts (try something common, like Arial that ought to be on almost every computer, too), then something else is probably at play.

  • How can embed fonts into a PDF? Additionally, how can I make so that the PDF then opens with the embedded font?

    I need to embed a standard font (such as Times New Roman) and make it so that the document opens with this font presented. I see information on embedding fonts, but nothing related to the second part of my question. Thanks.

    The second part is automatic. If you manage to embed a font (for example with Preflight in Acrobat Pro), then a PDF viewer should use that. In some cases a locally installed font of the SAME NAME might take preference, which is only a difficulty if a private edited font is used.

  • Missing characters in CFF embedded fonts

    Our application loads embedded fonts on the fly. I'm in the process of converting our text handling to FTE and switching over to CFF fonts, but I've noticed that for a couple of fonts, there are characters that are damaged, or missing entirely. The same text renders correctly when the font is installed as a system font, and also when it's embedded in the non-CFF format, so CFF embedding is choking on something, but I have no idea what. Nor do I see a lot of knobs that I can twist to control the CFF output.
    For example, Budmo Jiggler (http://www.dafont.com/budmo-jiggler.font). When embedded as CFF, the letter "B" isn't rendering correctly:
    This occurs in both the 10.3 and 11.3 players.
    My embedding code is autogenerated for all fonts and looks like this:
    // GENERATED FILE - DO NOT EDIT
    package {
         import flash.display.Sprite;
         import flash.text.Font;
         [SWF(width="800", height="600", backgroundColor="#FFFFFF", frameRate="30")]
         public class BUDMO extends Sprite {
              [Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMO.ttf',
                     mimeType="application/x-font",
                     fontName='embedded_BUDMO',
                     unicodeRange='U+0000-U+00FF',
                     embedAsCFF='true',
                     fontWeight='normal',
                     fontStyle='normal')]
              public static var embedded_BUDMO:Class;
              [Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMOB.ttf',
                     mimeType="application/x-font",
                     fontName='embedded_BUDMO',
                     unicodeRange='U+0000-U+00FF',
                     embedAsCFF='true',
                     fontWeight='bold',
                     fontStyle='normal')]
              public static var embedded_BUDMO_Bold:Class;
                trace("Registering font embedded_BUDMO");
                Font.registerFont(embedded_BUDMO);
                trace("Registering font embedded_BUDMO_Bold");
                Font.registerFont(embedded_BUDMO_Bold);
    The code is compiled like so: mxmlc --static-link-runtime-shared-libraries -output <swf_file> <as3_file>. There are no warnings.
    So...what do I try next?

    I will close my own question by saying that if I convert the TTF files to OpenType, the problem goes away. I would have preferred not to bang my head on this particular wall, but at least I have a workaround now.

  • Module not unloading if embedded font was ever used

    So, I have a test app that uses modules with the font embeded. Using ModuleManager I am able to load up the module. Once I call   IModuleInfo.factory.create(), I am then able to setStyle("fontFamily", "BPDiet") and the font does show up. The issue I am now having is that once I have used a font from a module, even if my TextArea is no longer using it (I even tried removing the textArea, and replacing it with a new one), the module will not unload.
    I read through this "What We Know About Unloading Modules" and I think I am not leaving any references around.They are loaded using the load() defaults. There is no code (that is used) in the module. The modules are not being added to the display, so they never receive focus.
    Note that I am unable to run the profiler as suggested in the article as I don't have the premium Flash Builder 4. <grrr>
    Note that the first module that is loaded, I can never get to unload, even if I never used the font embedded in it, but all subsequent modules will unload, if I do not use the embedded font. I can live with the first one being pinned as long as I can unload the others that are not in use.
    Here is the code from one of my modules:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import spark.components.TextArea;
                [Embed(source='assets/BPDiet.otf',
                        fontName='BPDiet',
                           mimeType='application/x-font')]
                public static var BPDietNormal:Class;
                public function GetSampleTextArea():TextArea {
                    var SampleTextArea:TextArea = new TextArea();
                    SampleTextArea.text = "Test BPDiet please!";
                    SampleTextArea.setStyle("fontFamily", 'BPDiet');
                    return SampleTextArea;           
            ]]>
        </fx:Script>
    </mx:Module>
    And here is the App that is loading and using the modules:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="400" minHeight="400">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.core.UIComponent;
                import mx.events.FlexEvent;
                import mx.events.ModuleEvent;
                import mx.managers.SystemManager;
                import mx.modules.IModule;
                import mx.modules.IModuleInfo;
                import mx.modules.Module;
                import mx.modules.ModuleManager;
                import spark.components.TextArea;
                private var _ta:TextArea = null;
                protected var _moduleInfo:IModuleInfo;
                private function LoadFontTextArea(fontSwf:String):void {
                    status.text = "Loading the font pack";
                    _moduleInfo = ModuleManager.getModule(fontSwf);
                    // add some listeners
                    _moduleInfo.addEventListener(ModuleEvent.READY, onModuleReady);
                    _moduleInfo.addEventListener(ModuleEvent.ERROR, moduleLoadErrorHandler);
                    _moduleInfo.addEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
                    _moduleInfo.load();
                private function onModuleReady(event:ModuleEvent):void {
                    status.text = "The font pack swf Ready \n" + event.module.url;
                    //All I had todo was create the module, then I could access the embeded font by name
                    var fontMod:* = event.module.factory.create();
                    //_ta = fontMod.GetSampleTextArea();
                    //panelToStuff.addElement(_ta);
                    fontMod = null;
                    //fontNameForSample = event.module.url.replace(".swf", "");
                private function moduleLoadErrorHandler(event:ModuleEvent):void {
                    status.text = "Font Module Load Error. \n" +
                        event.module.url + "\n"+ event.errorText;
                private function moduleUnloadHandler(event:ModuleEvent):void {
                    status.text = "Font Module Unload Event. \n" + event.module.url;
                private function fontChangedHandler():void {
                    unloadCurrentFont();
                    LoadFontTextArea(String(availFonts.selectedItem));
                private function unloadCurrentFont():void {
                    if (_ta != null) {
                        panelToStuff.removeElement(_ta);
                        _ta = null;
                    panelToStuff.removeElement(sampleTextArea);
                    sampleTextArea = null;
                    sampleTextArea = new TextArea();
                    sampleTextArea.id = "sampleTextArea";
                    sampleTextArea.text = "Some text for your viewing pleasure. " + colorForBK.toString(16);
                    panelToStuff.addElement(sampleTextArea);               
                    if (_moduleInfo != null)
                        _moduleInfo.release();
                        //_moduleInfo.unload();
                        _moduleInfo = null;
                    System.gc();
                private function DoNonImportantWork():void {
                    colorForBK -= 0xFAA;
                    if (colorForBK < 0x0) colorForBK = 0xFFFFFF;
                    var foo:* = {prop1: "yea" + colorForBK.toString(), prop2:"boo" + colorForBK.toString()};
                    var hmm:String = foo.prop1 + " " + foo.prop2;
                    regedFonts = new ArrayCollection(Font.enumerateFonts(false));
                [Bindable]
                private var colorForBK:int = 0xFFFFFF;
                [Bindable]
                private var fonts:ArrayCollection =
                    new ArrayCollection(new Array("AlexandriaFLF.swf", "BPDiet.swf", "ChanpagneFont.swf", "KidsFont.swf"));
                [Bindable]
                private var regedFonts:ArrayCollection;
                [Bindable]
                private var fontNameForSample:String = "";
            ]]>
        </fx:Script>
        <s:VGroup id="panelToStuff">
            <s:HGroup>
                <s:Label id="status" text="status area" backgroundColor="{colorForBK}"/>
                <s:VGroup>
                    <s:DropDownList id="availFonts" dataProvider="{fonts}" change="fontChangedHandler()" />
                    <s:Button label="UnLoad" enabled="true" click="unloadCurrentFont()"/>
                    <s:Button label="doSome" enabled="true" click="DoNonImportantWork()"/>
                </s:VGroup>
            </s:HGroup>
            <s:HGroup>
                <s:Button click="fontNameForSample = 'BPDiet';" label="BPDiet"/>
                <s:Button click="fontNameForSample = 'Champagne';" label="Champagne"/>
                <s:Button click="fontNameForSample = 'Kids';" label="Kids"/>
            </s:HGroup>
            <s:Label text="{regedFonts.length} reg'ed"/>
            <s:TextArea id="sampleTextArea" fontFamily="{fontNameForSample}" text="Some Sample text for your viewing"/>
        </s:VGroup>
    </s:Application>
    A couple things to note; I am calling System.rc() in the unloadCurrentFont() method just to speed up seeing the SWF unload in the debug console. The DoNonImportantWork() is there to just cause some events to happen and to create some objects that will need to be GC'ed. It also let me know that the fonts are not getting registered in Font.
    I'm going to have 30 fonts (and more, that designer is busy) that I will need to be able to dynamically load, but right now, loading them with CSS style modules blows up after about 15 because style modules register the font so I cannot unload the CSS swf.

    To help eliminate the question of whether the TextArea is being held by something else, I have removed it from the MXML, and now programatically create it. That did not help.
    So, I got the trial version of Flash Builder 4 installed on another machine in the office so that I can use the profiler. (The profiler is pretty cool by the way).
    After a lot of profiing, I found four paths to the module's FlexModuleFactory.
    Two of those paths go to EmbeddedFontRegistry, whose data is static. I could get into it and remove font entry and free up the moduleFactory from there. This is a hack, that entry in/on EmbeddedFontRegistry.font should have been cleaned up by the code removing the fontFamily from the TextArea. (Note that EmbeddedFontRegistry is marked [ExcludeClass], which I assume means I should not really be messing with it.
    The other two I cannot get to as they are anonymous. They also don't appear to be referenced, as the Object References shows them both as GC root objects. Here is a screen shot:
    I did a search through the sdk code and 'fbs' only shows up as a parameter on the init function of various Marshal support classes, but is not used in the init()
    Anyway, these references to the FlexModuleFactory do not get held if I do not use the embeded font in the module.
    Here is the updated code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="400" minHeight="400">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.core.EmbeddedFont;
                import mx.core.EmbeddedFontRegistry;
                import mx.core.IEmbeddedFontRegistry;
                import mx.core.UIComponent;
                import mx.events.FlexEvent;
                import mx.events.ModuleEvent;
                import mx.managers.SystemManager;
                import mx.modules.IModule;
                import mx.modules.IModuleInfo;
                import mx.modules.Module;
                import mx.modules.ModuleManager;
                import spark.components.TextArea;
                private var _ta:TextArea = null;
                protected var _moduleInfo:IModuleInfo;
                private function LoadFontTextArea(fontSwf:String):void {
                    status.text = "Loading the font pack";
                    _moduleInfo = ModuleManager.getModule(fontSwf);
                    // add some listeners
                    _moduleInfo.addEventListener(ModuleEvent.READY, onModuleReady);
                    _moduleInfo.addEventListener(ModuleEvent.ERROR, moduleLoadErrorHandler);
                    _moduleInfo.addEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
                    _moduleInfo.load();
                private function onModuleReady(event:ModuleEvent):void {
                    status.text = "The font pack swf Ready \n" + event.module.url;
                    //All I had todo was create the module, then I could access the embeded font by name
                    var fontMod:* = event.module.factory.create();
                    fontMod = null;
                private function moduleLoadErrorHandler(event:ModuleEvent):void {
                    status.text = "Font Module Load Error. \n" +
                        event.module.url + "\n"+ event.errorText;
                private function moduleUnloadHandler(event:ModuleEvent):void {
                    status.text = "Font Module Unload Event. \n" + event.module.url;
                private function fontChangedHandler():void {
                    unloadCurrentFont();
                    LoadFontTextArea(String(availFonts.selectedItem));
                private function unloadCurrentFont():void {
                    if (_ta != null && _moduleInfo != null) {
                        var fontName:String = _ta.getStyle("fontFamily");
                        _ta.setStyle("fontFamily", "");
                        _ta.validateProperties();
                        if (_ta.textDisplay) {
                            _ta.textDisplay.validateProperties();
                        panelToStuff.removeElement(_ta);               
                        _ta = null;
                        //This I should not have to do, but the framework is not doing it
                        var embFontReg:IEmbeddedFontRegistry = EmbeddedFontRegistry.getInstance();
                        var embFonts:Array = embFontReg.getFonts();
                        for each (var curEmbFont:EmbeddedFont in embFonts){
                            if (curEmbFont.fontName == fontName){
                                embFontReg.deregisterFont(curEmbFont, _moduleInfo.factory);
                    if (_moduleInfo != null)
                        _moduleInfo.unload();
                        _moduleInfo = null;
                    System.gc();
                private function AddTA():void {
                    _ta = new TextArea();
                    _ta.text = "Some text for your viewing pleasure. " + colorForBK.toString(16);
                    panelToStuff.addElement(_ta);
                private function DoNonImportantWork():void {
                    colorForBK -= 0xFAA;
                    if (colorForBK < 0x0) colorForBK = 0xFFFFFF;
                    var foo:* = {prop1: "yea" + colorForBK.toString(), prop2:"boo" + colorForBK.toString()};
                    var hmm:String = foo.prop1 + " " + foo.prop2;
                [Bindable]
                private var colorForBK:int = 0xFFFFFF;
                [Bindable]
                private var fonts:ArrayCollection =
                    new ArrayCollection(new Array("AlexandriaFLF.swf", "BPDiet.swf", "ChanpagneFont.swf", "KidsFont.swf"));
            ]]>
        </fx:Script>
        <s:VGroup id="panelToStuff">
            <s:HGroup>
                <s:Label id="status" text="status area" backgroundColor="{colorForBK}"/>
                <s:VGroup>
                    <s:DropDownList id="availFonts" dataProvider="{fonts}" change="fontChangedHandler()" />
                    <s:Button label="UnLoad" enabled="true" click="unloadCurrentFont()"/>
                    <s:Button label="AddTA" enabled="true" click="AddTA()"/>
                    <s:Button label="doSome" enabled="true" click="DoNonImportantWork()"/>
                </s:VGroup>
            </s:HGroup>
            <s:Button click="_ta.setStyle('fontFamily', 'BPDiet');" label="BPDiet"/>
        </s:VGroup>
    </s:Application>
    I really think I've reached the end of what I can do. This really seems like a bug.

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
    What I did so far that did not work:
    Made fonts static with animation
    made fonts dynamic with animation
    How can I fix this?
    I am still a beginner using flash so the simpler the option the better.
    Thanks!!!

    there are quite a few ways you could mess this up but no one way that's typical.
    create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
    any other way (or ordering of steps) you use to create static text is prone to problems.

  • Cannot Extract Embedded Font in PDF Report Generated Using Crystal Reports XI

    The issue is that sometimes the PDF reports generated by Crystal Report XI are not showing the fonts properly. Arial font is used in the Crystal report template(.rpt file) for field label and data elements. When the report is opened in Adobe Reader, it displays the message - "Cannot extract the embedded font 'AAAAAA+ArialBold'. some characters may not display or print correctly." Other PDF Readers like Foxit show blank spaces instead. I tried to change the font to Courier New, Times New Roman etc but still getting the same message.
    The issue is consistent when the application is deployed in Windows server. When deployed in Unix server the issue happens very occasionally. The font files are available and installed in the UNIX box.
    Please tell me why this error message is shown and also tell me how to get it fixed.

    Hi Scot
    Just replied to your email re. conf call.
    In the meantime.
    1st question.  
        Some of our developers are creating the reports under crystal 2008, while some are 2011.
        Could this be a problem, when they are run by the SDK?
        Should we upgrade all our developers to crystal 2011?
    The version of CR a report is created in should not matter at all. I am 100% certain this is not the issue.
    2nd question
        When the report is run, to create the pdf... why would it actually embed the font on the pdf?
        if they weren't embedded.. wouldn't it just pull up the proper font, if the user's pc had that font on their
        pc?
        if it does the common fonts aren't embedded, we would just have to worry about the things like
        barcode 3 of 9
    I can not answer this as that essentially is the way the product is designed. It may look like a limitation, but there are no work-arounds and I would not consider this to be a bug. Perhaps an enhancement, but a pretty faint hope there. And even if, enhancements take very, very low priority and take long, long time before implementation.
    3rd question
        Would the fonts, just need to be installed on the server?   we've seen some indication, that they
        also need to be in a java sub-directory
    The fonts must be on the server as that is where the report engine does it's work, then the report is streamed to the user's browser. E.g.; there is no work done on the browser. Also, the process must have rights to access the fonts.
    One last point. You mention deployment to Linux. Linux is not supported. Please see: SAP Crystal Reports, Developer Version for Microsoft Visual Studio - Supported Platforms
    I suspect this is more an issue with CR not working with the framework for Linux.
    - Ludek

Maybe you are looking for

  • Error in Export To Excel

    File error: data may have been lost When, I do property display cell to Hyperlink.

  • Idoc inbound problem

    Hi Friends, I am facing a problem in IDOC inbound processing. My scenario in SALES PER RECEIPT - POS like this: I have to read XML (From PC) file and i have to post it. I am using Idoc - WPUBON01. After reading XML file i used Function module to dist

  • [BUG] Bing Search & Homepage not working

    Hi all, I'm very very pleased wih my very first BB, namely the Z10. Running now 10.1.0.1880. Though came across this annoying bug: After clearing cache and cookies in my browser, Bing search and homepage aren't working anymore. When I search s.th. fr

  • Transformations

    what are the various transformations supported in ODI?

  • Authorization on Invoice Plan in ME22N

    Hi All, We have been having issues with out Invoice Planning in ME22N, where if a user goes into the plan, it recalculates it, and we are paying our vendors multiple times. We created a message with SAP, and they said to do code changes to restrict u