Flex :: Fontfamily - Reference The System Font?
Oct 7, 2010
I've embedded a font in my component. All of the text in the component uses the embedded font. But, I want a button to use the standard system font. How do I set the button's fontFamily to the system font?
<mx:Button label="Hello" fontFamily="?" />
View 1 Replies
Similar Posts:
Feb 7, 2011
I'm trying to embed a font in my project by using url("font.ttf") rather than local("Font Name"), but it doesn't seem to pick it up. The font in question is called "Gotham Bold". When i view the details of the font, the font weight is regular, however when i use local("Gotham Bold") in the css i have to specify fontWeight: bold or else it wont pick it up. But when I use url("folderGotham-Bold.ttf"), and specify fontWeight: bold, it says that font weight is not found for that TTF. If i remove the fontweight, there's no errors, but the font is not applied to the text.
View 2 Replies
Sep 15, 2010
I'm using the font Arial Unicode MS to display Chinese characters. I'm not embedding it. I'll use Actionscript to build TextFields and populate them dynamically with data with Chinese characters.For delivery on western systems, I can set the font property in TextFormat objects to [code]Can I do that on Chinese language operating systems or do I need to use the Chinese characters instead of "Arial Unicode MS" to define the font property?[code]If it's the latter, does anyone have those characters handy (the example above is a different font name) if they'll display here? They're visible in the font menu in Flash CS5, but I can't copy them from there.
View 0 Replies
Jan 5, 2011
Does anyone know of a way to determine if a glyph is available for a system font, as returned by Font.enumerateFonts()? It turns out Font.hasGlyphs only works on embedded fonts set to export for ActionScript.
View 0 Replies
Feb 7, 2005
I am using Flash MX 2004 and would like to display the system date/time. The problem I am encountering is when trying to use a pixel font to display it with. Is this possible??? Or can you use only standard (safe) font�s i.e. Arial, sans-serif etc.
View 1 Replies
Mar 14, 2009
I am using AS3 to dynamically create TextFields.It is working fine, except I can't figure out how to apply a font. It is always the same.
i tried:
txtField.fontFamily = 'Arial';
but got the error "Property fontFamily cannot be applied to flash.text.TextField.So how do i do this?
View 3 Replies
Sep 8, 2010
How do I specify multiple fonts to the fontFamily property of a StyleSheet object, instead of the single (Arial) I've set below?
Code:
var subtitles_english:Object = {
fontFamily: "Arial",
[code].....
View 1 Replies
Jun 30, 2010
I am trying to build a swf that styles XML data with specific fonts via either internal or external CSS object, forming an online proofing method for a print job. The fonts I need to use are very specific, so I have embedded them into my library.The text has to be in a single text box, with unique fonts applied to each line.How do I reference the fonts I have embedded in the CSS object (currently an internally built object)?[code]The embedded fonts are named: Helvetica Neue 67 Medium Condensed with export for actionscript in frame 1 checked, class name: HelveticaNeue67MediumCondensed.
View 4 Replies
Sep 22, 2010
I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.
View 2 Replies
Jan 21, 2011
I'm using Flex 4. I'm trying to apply a embedded font in all Alert components of the application, to get the same style that all the app, of course. I code in my CSS file:
[Code]...
The font-family worked to all componentes, but not to the Alert component. In alert the text message and title got unvisible. If I change to other font-family it works correctly, just the embedded font doesn't work on Alert component. Anyone got this problem? Obs: The embedded font worked in all the app, just the Alert no.
View 1 Replies
Mar 23, 2011
In my application I'm using a custom embedded font for English (Helvetica New) which does not contain characters (glyphs) for chinese unicode range. In the application, wherver chinese characters are avaiable they are not displayed (suppressed) since they are missing in the custom embedded font. How can I make the flash player to use a fallback system font for the missing characters? And the fallback should be for the missing characters alone. For the Engligh characters it should use the embedded font.
View 1 Replies
Aug 28, 2011
This is my EnglishFonts.swf application that contains embedded fonts:
package
{
import flash.display.Sprite;[code]...........
Font.registerFont() throws this error:
ArgumentError: Error #1508: The value specified for argument font is invalid. at flash.text::Font$/registerFont()
View 4 Replies
Aug 23, 2011
I seem to have trouble setting the font size of the text of a legend item when the font family is set to Courier.
legendItem.setStyle("fontFamily", "Courier");
legendItem.setStyle("fontSize", 7);
doesn't work.
[code]......
View 1 Replies
Jul 4, 2011
I am unfamiliar with Flash and actionscript and I need help to dynamically change the font of a textbox based on the value of a flashvar. I have a flash template whose content I can edit through XML. The flashvar value specifies the language and points to a different XML file. This works without problems, and I have found online a way to change the font via actionscript. However I need help on how to get a reference to that textbox.
There are two files an .fla and Main.as file. Within the fla file there is a single Scene and when the textbox is selected the properties display "thisLogo" as its name and "Dynamic Text" in the combo box below. Within the Main.as file I have attempted to add the following code:
[Code]...
1119: Access of possibly undefined property thisLogo through a reference with static type Main.
View 1 Replies
Aug 19, 2009
I have the following XML
[Code]...
I am able to get <styling> as a XML but I cannot figure out how to parse the style object in order get the color, fontFamily fontSize attribute values. I am also unable to access the lang attribute value <tt xml:lang="en">
[Code]...
View 1 Replies
May 6, 2010
package uk.co.bigroom.utils
{
import flash.utils.Dictionary;
/**
* Class to create a weak reference to an object. A weak reference
[code]....
In this Class, how they denote one as Weak Reference and one as Strong reference.
View 1 Replies
Aug 7, 2009
I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.
View 3 Replies
Feb 21, 2011
This maybe a bit of a 'wide' question, but am putting together a brief overview of a new system I'm proposing at work. It will be a POS style system, that does quotes and invoices + crm for our work enviroment across 100 + locations.
It will communicate with server via the Internet. Flex / Air feature set (offline SQL is Internet goes down, Rich communications, rich client environment etc), the fact that we run Macs + PC makes it looks like a great choice. I know HTML 5 has offline SQL and stuff, but flex feature set is way more comprehensive / usable etc..Is anyone doing any big corporate Flex / Air projects that need to last a long time? Or are you pushing HTML and its new technologies to provide a more safe investment.
View 1 Replies
Jun 25, 2009
Is there a way to get a unique machine-specific system ID in a Flex application running in a browser, so that is can be used for example to determine if the machine is properly licensed to run the application?
View 5 Replies
Apr 14, 2010
I am loading data from one sample.xml file using http service. the xml file will generated by jsp and it is saving in one proper location like(d:/programfiles/some.xml).now when I first time login to application i need to check whether that xml file is present or not. How can I check?
View 2 Replies
Dec 3, 2010
I can display the icon of a file that has been associated with that file in the native OS.
I have a tile list of a folder's contents. For images, I display the image, for everything else I display a generic image. However, it would be great if I could tap into the OS and just use the icon that the OS uses. For example, if I have installed Microsoft Word on my computer, then when I view a word document in the file system it will display the word icon that Microsoft created for word documents. For MP3's it might be an iTunes type sound icon, if I have iTunes installed and so on.
Basically, for all the files in my tile list I want to just show the same icon that Windows, or Mac OS would etc.
In addition to this, if the OS creates a thumbnail for the file (images, videos and PDFs for example) is it possible to tap into this OS generated thumb?
View 2 Replies
Jan 30, 2012
I followed an example on how to make a login system in flex. This example was not made for flex mobile projects, but desktops running in a browser. As I understand I can use the same code but with different components. I keep getting errors. My code is beneath. PHP code for connecting and quering the database, and send result back with xml
<?php
echo "<?xml version=""1.0" ?>
";
$con = mysql_connect("HOST","USER","PASS");
[code]...
My First thought was that I can't use <mx:HTTPService> and other mx based services in my mobile flex application.
View 1 Replies
Jun 30, 2009
I'm making an App using Adobe Flex/Air. I was wondering if there was a way to get the Operating System the Air app is running on?
View 3 Replies
Feb 13, 2010
I am developing an application in flex 3 using action script 3........I have some range of ip address in LAN(wired or wireless both).....i want to check which all the systems available...and also want to see their shared folders..
View 2 Replies
Apr 5, 2010
can i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly.
View 2 Replies
Jun 16, 2010
how to detect all the browsers that are installed in a system.By using Flex
View 2 Replies
Jul 13, 2010
I have an AIR app that I have developed for a client.It has a system tray icon with the company name, app name etc, displayed in a tooltip.This all works very simply except that the client in question has a & in their name.No matter how I encode this, it never seems to get displayed.
View 2 Replies
Feb 23, 2011
I wrote a login system using flex and php, but for some odd reason the php echos back both "true" and "false". why this is happening?
?php
echo "<?xml version="1.0" encoding="utf-8"?>";
//include("connect.php"); // used for your connection to the database.
[code]....
View 1 Replies
Jun 13, 2011
recently, i upgraded to Flex Hero 4.5 and created a new workspace. Then, i imported a project from the former workspace and started working. when i tried to upload the project from the new workspace to codereview, i got the error message: could not guess version control system. Are you in a working copy directory? How does one resolve this issue? I have read somewhere that i need to checkout my svn but i thought that you only checkout when you want to get a folder/file from the svn.
View 2 Replies
Jun 30, 2011
I need to use multiple fonts in my Flex 4 application, so I compile them into swf and load at runtime. I have single .ttf file for each font. When I dont load font's swf file at runtime, flex uses copy of this font installed on my system, and it works fine - I can switch between regular, bold and italic faces of the font correctly.However,when I load fonts from swfs, setting their style to bold or italic makes no effect. I tried different ways of compiling swfs (css using mxmlc compiler, fontswf utility,.as files with [embed] tags), but nothing worked. When compiling using css it sometimes throw errors that font face is not supported, and it seems that some fonts are available only in bold-italic style only or bold style only.I use cff fonts, load them using etcs.ru.utils.FontLoader utility. Fonts are loaded correctly, I check this with Font.enumerate fonts.So is there any way to embed these .ttf files with all styles available?
View 1 Replies