Re: [flexcoders] Embedding fonts with a font that doesn't have bold
Yeah i understood that bit (doh). Standard fonts have the glyphs all inside one package (bold and italic) however some font designers make variants of these sets. These variants are not tracked by the standard text formatting services (Bold keyword needs to correspond to a default set for bold - if someone calls it bold-condensed you are screwed). As a result, these variants are accessed as if they are separate fonts (postfixed with the variant name). [Bindable] public var $mainFont:String = Some Font Regular; [Bindable] public var $mainFontBold:String = Some Other Font Bold; In most cases, it is impossible to strictly adhere to one font and expect all glyphs to be available for all styles. So to provide SUCH a facility, simply use one glyph set that is specific to bold and another for regular text. If (obviously) the author didn't include the glyphs for the font - simply use a substitution (a different font). All i was saying was that you can get around the missing glyph issue by using a different font and modifying the fontFamily property either in HTML (htmlText) of the text-box property or the style attribute... if ($fontFamily != null) $textBox.setStyle(fontFamily, $fontFamily); Enjoy, regards and hope that clarifies.. Samuel On Apr 3, 2010, at 11:24 PM, Mike Chang wrote: Oleg's right. Thanks all. On Sat, Apr 3, 2010 at 2:06 PM, Oleg Sivokon olegsivo...@gmail.com wrote: Samuel, It was actually not me, who asked the question :) Besides, from what I understood from the question - the font doesn't have bold face, so, you cannot embed bold characters from that font, because they had never been designed by the font's author :) If this isn't the case, then probably my answer is worth nothing. Best. Oleg Disclaimer _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from your computer. Thank you.
[flexcoders] Flash focus issue or browser issue ?
Hello there. I'm experiencing a bug with non-IE browsers (firefox, opera, chrome, ...) and wondering if it's a Flash or Flex bug or a browser issue. What do I need to do to solve that ? Quick version: here is the example showing the problem http://devenirlibre.com/fullscreen/FS.html http://devenirlibre.com/fullscreen/FS.html More detail: I have a fullscreen button. It's state is linked to the DisplayState value. I made a example to show you the problem. It's based on a flex example source : http://blog.flexexamples.com/2007/08/07/creating-full-screen-flex-applic\ ations/ I just changed moved the button to the top of the Application, give it an id (button) plus the following: private function fullScreenHandler(evt:FullScreenEvent):void { dispState = Application.application.stage.displayState + (fullScreen= + evt.fullScreen.toString() + ); if (evt.fullScreen) { /* Do something specific here if we switched to full screen mode. */ } else { /* Do something specific here if we switched to normal mode. */ } } to private function fullScreenHandler(evt:FullScreenEvent):void { dispState = Application.application.stage.displayState + (fullScreen= + evt.fullScreen.toString() + ); if (evt.fullScreen) { button.selected = true; } else { button.selected = false; } } To see the bug, make sure that the place where the button is when fullscreen is outside the browser content window when normal. I hope it make sense. Here is the example: http://devenirlibre.com/fullscreen/FS.html http://devenirlibre.com/fullscreen/FS.html
[flexcoders] how to create a javascript file in flex environment......
[flexcoders] what is the method in mx script for declaration....as fx:declarations
what is the method we use in mxml to declare a $(dollar) symbol as i konw in fx script we writ the code as fx:Declarations mx:CurrencyFormatter id=usdFormatter precision=2 currencySymbol=$ decimalSeparatorFrom=. decimalSeparatorTo=. useNegativeSign=true useThousandsSeparator=true alignSymbol=left/ /fx:Declarations
[flexcoders] Combobox editor problem
Hi. Iam using a combo box as item editor and am rendering it dynamically using action script. My requirement is simple. a.) I have 3 values, Y, N and TBD. The default is TBD. b.) When I click on the drop down, the TBD is visible at the background of the drop down. Not sure why this is happening and because of this, the look and feel is not all that good. Request your help to get rid of this problem. main app - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:stax=Stacks.* height=100% width=100% xmlns:local=* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var dp:ArrayCollection = new ArrayCollection([ {Category:0,Risk:Y} ,{Category:1,Risk:Y},{Category:1,Risk:N/ A} ]); ]] /mx:Script mx:Panel label=Report title=Report height=100% width=100% styleName=Panel mx:AdvancedDataGrid width=200 height=200 id=dProvider1 dataProvider={dp} editable=true borderThickness=2 headerHeight=40 headerWordWrap=true wordWrap=true mx:columns mx:AdvancedDataGridColumn dataField=Category headerText=Deliverable Category width=50 editable=false/ mx:AdvancedDataGridColumn dataField=Risk headerText=Risk(RYG) width=50 editorDataField=selectVal itemEditor=checkBoxEditor/ /mx:columns /mx:AdvancedDataGrid /mx:Panel /mx:Application checkBoxEditor.mxml (Item editor) ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initMe() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var selectVal:String = ; [Bindable] private var typeRisk:ArrayCollection = new ArrayCollection([{type:TBD}, {type:N/A},{type:Y},{type:G} ]); private function initMe():void { selectVal = data.Risk; for (var i:int =0;itypeRisk.length; i++) { if (typeRisk[i].type == data.Risk) { Combo.selectedIndex = i; } } } private function selectionChange():void { selectVal = Combo.selectedItem.type; } ]] /mx:Script mx:ComboBox id=Combo dataProvider={typeRisk} labelField=type change=selectionChange()/ /mx:HBox Thanks Bala http://old.nabble.com/file/p28116393/issue.jpeg -- View this message in context: http://old.nabble.com/Combobox-editor-problem-tp28116393p28116393.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Unsubscribe
Can someone tell me how can i unsubscribe from this email list? I sent some mails to flexcoders-unsubscr...@yahoogroups.com but I keep receiving mails thanks
[flexcoders] Can't get properties to compile?
I'm trying to add locale-specific properties to my application. I'm using Flex Builder 3.0.2. What I've done is: - at the root of my module, added a folder named 'res' - underneath res, added a folder named 'en_US' - within res/en_US, added a file named 'MyApp.properties', which contains my localizable properties I added the folder 'res/{locale}' as an additional source folder to my project under the Flex Build Path property for my project. Under the Flex Compiler properties I have the following under Additional compiler arguments: -locale=en_US -allow-source-path-overlap=true -keep-generated-actionscript=true I now have a generated folder under my src folder, and it includes a large number of .as files, including a number of *_properties.as files, but not one for MyApp. Indeed, in my application, if I trace the result of ResourceManager.getInstance().getBundleNamesForLocale(en_US), I get the following list: effects,formatters,SharedResources,skins,containers,styles,core. MyApp, however, is not listed, and indeed, attempting to fetch any resource from the bundle MyApp returns null. What am I missing? -- Rick Genter rick.gen...@gmail.com
[flexcoders] best source to prepare flex...?
[flexcoders] Cursor disappears intermittently on Mac
Hi, I have a AIR deployed application, and I'm running into a problem on Mac OS X. When I try to drag the window around by the title bar, the mouse cursor disappears intermittently. On Windows it's fine... Any idea? Thanks, Mike
Re: [flexcoders] Can't get properties to compile?
Hi Rick, On 4 April 2010 21:24, Rick Genter rick.gen...@gmail.com wrote: What am I missing? Have you declared the bundle metadata anywhere in your app? Something like... mx:Metadata [ResourceBundle(MyApp)] /mx:Metadata ... in your main app? hth, gabriel -- gabriel montagné láscaris comneno http://rojored.com +44 (0) 7500 709 209
Re: [flexcoders] Can't get properties to compile?
On Apr 4, 2010, at 8:37 PM, gabriel montagné wrote: Hi Rick, On 4 April 2010 21:24, Rick Genter rick.gen...@gmail.com wrote: What am I missing? Have you declared the bundle metadata anywhere in your app? Something like... mx:Metadata [ResourceBundle(MyApp)] /mx:Metadata ... in your main app? hth, gabriel -- gabriel montagné láscaris comneno http://rojored.com +44 (0) 7500 709 209 Hi Gabriel, Thank you; that was it. I must have looked at 3 or 4 different tutorials and none of them mentioned that obviously critical step. The next time I'm in the UK, I owe you a pint ;-). -- Rick Genter rick.gen...@gmail.com
[flexcoders] Using flexTask on Linux
Hi. I was trying to compile a project that compiles fine on Win on Linux. I believe I'm using the same SDK distro on both platforms. The flexTask is even exactly the same file, but I'm getting this error: [compc] Error: org/w3c/css/sac/Condition [compc] [compc] java.lang.NoClassDefFoundError: org/w3c/css/sac/Condition [compc] at flex2.tools.API.getCompilers(API.java:264) [compc] at flex2.tools.Compc.compc(Compc.java:258) [compc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [compc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [compc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [compc] at java.lang.reflect.Method.invoke(Method.java:616) [compc] at flex.ant.FlexTask.executeInProcess(FlexTask.java:280) [compc] at flex.ant.FlexTask.execute(FlexTask.java:225) [compc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [compc] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [compc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [compc] at java.lang.reflect.Method.invoke(Method.java:616) [compc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [compc] at org.apache.tools.ant.Task.perform(Task.java:348) [compc] at org.apache.tools.ant.Target.execute(Target.java:357) [compc] at org.apache.tools.ant.Target.performTasks(Target.java:385) [compc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [compc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [compc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [compc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [compc] at org.apache.tools.ant.Main.runBuild(Main.java:758) [compc] at org.apache.tools.ant.Main.startAnt(Main.java:217) [compc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [compc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [compc] Caused by: java.lang.ClassNotFoundException: org.w3c.css.sac.Condition [compc] at java.net.URLClassLoader$1.run(URLClassLoader.java:217) [compc] at java.security.AccessController.doPrivileged(Native Method) [compc] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [compc] at java.lang.ClassLoader.loadClass(ClassLoader.java:319) [compc] at java.lang.ClassLoader.loadClass(ClassLoader.java:264) [compc] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332) [compc] ... 24 more I'm new to Linux, so, it could be that I haven't installed something (I have downloaded and installed JVM and JDK 1.6) I'm on 32 bit Ubuntu. The missing definition looks like it shouldn't be the part of flexTask or Ant (or, maybe actually Ant's XML parser?). Well, I'm really not even sure where to look for the info / what to look for. I can otherwise run other Ant tasks, haven't made extensive testing, but, what I've tried had worked so far. Any ideas anyone? Thanks Oleg