How to use dynamic loaded embeded font?
I have loaded fonts.swf on startup. I don't use TextLayout
Embeded fonts feature. Then i have loaded some xml and assign xml
to TextLayout. How I can use loaded font for display?
Are you using Flash CS4 or Flex?
Check out the following blog post, it contains instructions
for font embedding that may help you out:
Embedded
Font Subsetting Using DefineFont4
Similar Messages
-
How to get collection of embeded fonts using plugins in acrobat reader?
I am trying to create a plugin for acrobat reader to display embedded fonts on opened document and will do business logic afterward, but not sure whats the method to get the collection of embedded fonts.
Please give me example of code snippet how to get collection of embedded fonts of opened document.
ThanksPDDocEnumFonts() will enumerate the fonts in a document for you. You will have to look at each font to determine if it's embedded or not.
Don't forget that to build a plugin for Reader, you need a license from Adobe. -
Can anybody please send me a small program on How to Use Dynamic SQL.
How to execute and run give details.
Thanks
nullYou can certainly use the INTO (and USING) clauses of EXECUTE IMMEDIATE to pass in and return data, i.e.
EXECUTE IMMEDIATE sqlStmt
USING variable1, variable2
INTO output1, output2The more complex the statement, however, the more appropriate DBMS_SQL is. DBMS_SQL also has the potential to allow you to use bind variables rather than reparsing the statement many times.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to use Sql Loader in Unix Environmant
Hi All,
Can anyone explain me please how to use sql Loader in unix environment.
Actually i have one control file i want to run that file in Unix how can i achive please explain me
Thank'sHi Kuljeet,
Thank you for your replay
I just put my control file into the Unix Environmant that's fime
and when i trying to entering the following cmd in Unix environment i am getting this error
sqlldr username/password@string control='unix_pathname'i am not sure about the path name my question is
1) Do i need to give the Local file Path Or Unix Path
This is the error in Sql Loader:
SQL*Loader: Release 10.2.0.4.0 - Production on Mon Sep 24 13:14:23 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (/bx167a/riskbatch/rdwdbat/sample_upl.upl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
Could you please correct me
Thank's -
How to use dynamic select query which queries from 3 different table.
Hi All,
I am new to Toplink, i would like to use a named query to select some of the columns from 3 different tables with dynamic where clause.
I have used the following lines. Please tell me how to get code for the dynamic where clause.
First try :
Vector objPersons = (Vector)session.executeQuery("findPersonByGlobalID",Person.class,vQueryArguments);
The above method is not returning the vector or collection.
Second Try:
ReadAllQuery query = new ReadAllQuery(Person.class);
query.useCollectionClass(LinkedList.class);
LinkedList person = (LinkedList) session.executeQuery(query);
The second try is returning the collection but, this fetches all the record from the table.
1. How to query for range of records?
2. How to query from multiple tables for some range. How to use dynamic range values ?
Please reply with your answers or some pointers would help.
Thanks and Regards,
Vijay.BHi,
Did you try using a SQLCall ? It might be able to satisfy you requirements .. :-
Employee employee = (Employee) session.executeSelectingCall(
new SQLCall("SELECT * FROM EMPLOYEE WHERE EMP_ID = 44")
);You can get more information here :-
http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/qrybas004.htm
Regards,
Sandeep -
How to use dynamic list box in survey builder?
Hello,
Could someone give me a little bit of thread? How to use dynamic list box in survey builder?Hi Liu,
Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
Also you may Refer the Link for Further help:
http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
Hope it Answers your Queries..
Thanks and Regards,
RK. -
How to use the Java embedding activity in BPel
hi all,
How to use the java embedding activity in BPEL
pls can u provide sample example1 Use [Oracle BPEL Process Manager Client Java API Reference|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/overview-summary.html] and especially [com.collaxa.cube.engine.ext|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/collaxa/cube/engine/ext/BaseBPELXExecLet.html]
Instead of System.Out.println use addAuditTrailEntry(java.lang.String message)
2. If you want to import a package write in code (Source View) of bpel process
+<bpelx:exec import="package_name"/>+ for example +<bpelx:exec import="java.util.regex.Matcher"/>+
example 1:
String bodyAsString;
StringBuffer myStringBuffer = new StringBuffer();
try {
bodyAsString = (String)getVariableData("BodyString");
addAuditTrailEntry("bodyAsString1: "+ bodyAsString);
Pattern pattern = Pattern.compile("goodDay");
Matcher matcher= pattern.matcher(bodyAsString);
while (matcher.find()) {
matcher.appendReplacement(myStringBuffer, "shitDay");
matcher.appendTail(myStringBuffer);
bodyAsString = myStringBuffer.toString();
addAuditTrailEntry("bodyAsString2: "+ bodyAsString);
} catch (Exception ex) {
addAuditTrailEntry("Failed+bodyAsString",ex.getMessage());
I put in code (Source View) the following
<bpelx:exec import="java.util.regex.Matcher"/>
<bpelx:exec import="java.util.regex.Pattern"/>
example2:
Object temp;
try {
temp = ((XMLElement)getVariableData("inputVariable","payload","/ns2:FiscalisMessage/ns2:Body")).getChildNodes().item(1);
setVariableData("AdjReceipt",temp);
addAuditTrailEntry("ok",temp.toString());
catch (Exception ex) {
addAuditTrailEntry("Failed :",ex);
I put in code (Source View) the following
<bpelx:exec import="oracle.xml.parser.v2.XMLElement"/> -
How to use dynamically column_name and column_name value in plsql procedure
hi,
how to use dynamically column_name and column_name value in plsql procedure.
for example, i have one table with column col1.i want write plsql code with dynamically execute the insert one schema to another schema.
by
sivaDECLARE
CURSOR C
IS
SELECT cc_cd
FROM TEMP1 WHERE s_flg ='A' AND b_num IN('826114');--,'709537','715484');
CURSOR D
IS
SELECT * FROM cONSTRAINTS_test ORDER BY SRL_NUM;
STMT VARCHAR2(4000);
p_target_schema VARCHAR2(30):='schema1';
p_source_schema VARCHAR2(30):='schema2';
BEGIN
FOR REC IN C
LOOP
FOR REC1 IN D
LOOP
STMT := 'INSERT INTO '||p_target_schema||''||'.'||''||REC1.CHILD_TABLE||' SELECT * FROM '||p_source_schema||''||'.'||''||REC1.CHILD_TABLE||' where '||REC1.COLUMN_NAME||'='||REC.cntrct_cd||'';
Dbms_Output.Put_Line('THE VALUE STMT:'||STMT);
END LOOP;
END LOOP;
END;
cc_cd='434se22442ss3433';
cc_t_ms is parent table-----------------------pk_cc_cd is primary key
cc_cd is column name
CONSTRAINTS_test table
CHILD_TABLE NOT NULL VARCHAR2(30)
CONSTRAINT_NAME NOT NULL VARCHAR2(30)
COLUMN_NAME NOT NULL VARCHAR2(400)
R_CONSTRAINT_NAME VARCHAR2(30)
CONSTRAINT_TYPE VARCHAR2(1)
PARENT_TABLE NOT NULL VARCHAR2(30)
SRL_NUM NUMBER(4)
CHILD_TABLE CONSTRAINT_NAME COLUMN_NAME R_CONSTRAINT_NAME CONSTRAINT_TYPE PARENT_TABLE SRL_NUM
a aaa cc_CD pk_cc_CD R cc_t_MS 1
bb bbb Cc_CD PK_CC_CD R cc_t_MS 2
bb_v bb_vsr S_NUM PK_S_NUM R bb_v 3
cC_HS_MS cc_hs_CD cc_CD PK_CC_CD R cc_t_MS 4
cC_HS_LNK cc_HIS_LNK_CD H_CD PK_HS_HCD R cC_hs_ms 5
cC_D_EMP cc_d_EMP Cc_CD PK_CC_CD R cc_t_MS 6
i want insert schema1 to schema2 with run time of column_name and column value.the column_name and values should dynamically generated
with refential integrity.is it possible?
can any please quick solution.its urgent
by
siva -
How to use dynamic parameter when a report is created using Stored Procedures
Hi all,
any one have the idea of how to use dynamic parameter in crystal report XI R2
when report is created using Stored Procedure.
Regards
shashi kant chauhanHi
You can create an SQL command in Database Expert > Expand your datasource > Add command
Then enter the SQL query that will create the list of values to supply to the user
eg select field1,field2 from table
Then edit the parameter of the report. These will be the SP parameters adn can be seen in field explorer.
Change the parameter type to Dynamic
Under the word Value click on Click here to add item
Scroll down to your Command and select one of the values that you want to appear in the list
e.g field1
Then click on the Parameters field - this is essential to create the param
You can edit other options as required
That should do it for you.
I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
Best of luck -
How to use Outline Load Utility with local encoding names of dimensions?
Hi,
I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
Target dimension name has been set in local encoding (cyrillic).
After execution my batch file I get error that unable to find specified load dimension "????" in target application.
Batch file has been created to start OutlineLoad in ANSI encoding:
cd C:\Hyperion\products\Planning\bin
OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
TIMEOUT 10
How to use Outline Load Utility with local encoding names of dimensions?Has somebody any idea about my question below ?
Regards,
Ed -
Unable to load embedded fonts in Textlayout Framework using SWFContext.
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries".
and checked with Flash player version 10.1 and 10.2 and 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in ActionScript Project it shows the embedded text.
But, when I load the slide1.swf in MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below red colored text is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass();
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
And, when I load the slide1.swf in Only MX Flex Poject, it shows the embedded Font.
Using Flex 4.5 SDK:--
With MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.Hi Jin-Huang
But when I use Simple ASProject with SDK 4.1 then it works fine but when I create Flex project then it give error
with SWFContext.
I think it's a issue of swfcontext or AS comunication with Spark components.
Please let me know if any solution.
Thanks -
How to style dynamically loading text?
Hi,
I am dynamically loading a .txt file into CS3 using
ActionScript 3.0. I want to style the text using CSS/HTML. The only
thing I can get to function using CSS/HTML is the "a tag", I can't
seem to get bold, colour, font, etc working. Should i be using CSS
or should I be doing this styling from ActionScript in the swf
files? I have checked the help files but I could get their tags to
work.
Any suggestions very welcome.
Thanks.you will have more control over all of this if you feed in an
xml file rather than a txt file. you can stipulate your class
attributes within the xml then
if you want to style the dynamic content using just your txt
file and the controls within the fla you could embed the typeface
glyphs you want to use within your output swf file and colour them
/ change weight etc within the fla
hope that is of some use
;-) -
How do I dynamically load a SWF that was compiled from an Fla with a linked external class file
I am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.
The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images.
The problem SWF is linked to an external class file and compiled with it.
i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.
1. there is no problem compiling this SWF with the class (it works fine by itself)
2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before
So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?
Would appreciate any suggestions,
Thanks!despite what you say, that loaded swf most likely is loading something and that's the cause of the error.
you could test that by putting the main swf's embedding html file in the same directory with problematic swf. if the problem is as explained above, you'll have no problem when the main html is in the same directory with the loaded swf. -
How to use Adobe Edge Web Fonts correctly
I am a Dreamweaver newbie and am trying to learn how to use it through the tutorials. I am stuck at part 3 trying to use Adobe Edge Web Fonts correctly in my web site. As far as I can tell I have followed the instructions in the tutorial correctly, but the font style effect does not show up on my site. I am working on a Windows 7 machine and using Dreamweaver 5.5. I have copied and pasted the javascript into the correct spot in the head of the index.html page as well as included the font-family name in the CSS file and saved the whole smash. The source code for my index page looks exactly like the sample in the tutorial, and I have tried to view my site in my browser, but no dice. Doesn't display the Edge Web Font style in the web page. I believe I've done everything according to the directions, but I suppose I've missed some small detail. Any suggestions greatly appreciated
You need to add a <script> to the head of your documents like the example below. In my example, I'm using all of the aguafina-script and league-gothic fonts.
<!--Edge Font-->
<script src="//use.edgefonts.net/aguafina-script:n4:all;league-gothic:n4:all.js"></script>
CSS:
h1 {
font-family: league-gothic, sans-serif;
font-weight:bold;
color: #639;
font-size: 250%;
A simple way to get the correct codes is to go to Adobe Edge Web Fonts and select the font you wish to use.
https://edgewebfonts.adobe.com/fonts
NOTE: You won't see the custom web fonts displayed in Design View, Live View or when previewed locally unless you use a local testing server. An easier way to test is by uploading the page to your remote server.
Hope this helps,
Nancy O. -
Unable to load embedded fonts in TlF / FlowLeafElement
dears,
I use TextFlowUtil.importFromString and FlowLeafElement to make each some text have its own style, every some words have diffirent color, fontFamily, fontSize....etc
that is done here in the text attribute in this xml tag, and TextFlowUtil.importFromString and FlowLeafElement make taht perfect:
<TextArea text="<div direction="rtl">
 <p textAlign="right">
 <span fontFamily="ttf" fontSize="16" color="#FFE000E0" >Welcome to Android Training. Here you'll find a collection of classes that aim to help you build great apps for </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE000E0" >Android, using best practices in a variety of framework topics.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">Each class explains the steps required to solve a problem or implement a feature using code snippets and </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">sample code for you to use in your apps.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">What you see now is just the beginning. We plan to add many more classes, expand and refine existing </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes, and build Training Courses that help you enhance your apps using objective-oriented collections of </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes.</span>
 </p>
</div>" direction="rtl" styleName=".textAreaTitle" editable="false" selectable="true" scrollable="false" mainReferance="UI.Components.Basics.TextArea" />
The problem is that i need to embed fonts, by this fontFamily="Arial" you can set font name which you want, but if i set font name which is embedded it won't work, like : fontFamily="ttf"
the embedded code is :
[Embed(source='/Resources/majallab.ttf',fontName='ttf',mimeType='application/x-font',embed AsCFF='true')]
var font1:Class; //This is only used to compile the code
I use Flex SDK 4.5,
what can i do ?
Thank you in advance,
amtTo use embedded fonts in a Flex component, the fontFamily for the component needs to be set to an embedded font that is in the same SWF as the other embedded fonts in the TextFlow. See my blog for more details
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
Maybe you are looking for
-
Problem in creation of order relevant - intercompany invoice
Dear all , I am facing problem in creation of intercompany invoice which is sales order relevant . Please tell which settings is required to resolve this as all the settings has been made. Send ur email id so that the problem can be described if requ
-
I can not install Oracle ODI when Supervisor Password
Hello, I have WIndows 7 (64 bit) Java jdk1.6.0_27, rcu version ofm_rcu_win_11.1.1.7.0_64_disk1_1of1, ofm_rcu_win_11.1.1.7.0_32_disk1_1of1, ofm_odi_win_11.1.1.7.0_32_disk1_2of2. And when squeegee program C: \ tmp \ odi \ Disk1 \ install \ win32 \ setu
-
How do i add songs to a second library?
I have created a second library but i am having trouble adding songs to it. I am using the latest version of itunes and i have tried several ways of doing it but none seem to work.
-
Ipod not showing up in itunes windows 8
after updating my iphone 3gs, which i now use an ipod, when i plug it up to my computer and open itunes, itunes does not recognize my device. help
-
Upgraded to 7.5 and iTunes is Broke
Hi After upgrading, iTunes is toast. When I try to open, it flashes to iTunes and then I get the "iTunes unexpectedly quit" I've tried permissions, Disk Warrior, trashed itunes and redownloaded, tried 7.4.2 and I keep getting ....Unexpectedly quit. I