Change font size with CSS : Font « Graphics « Flex






Change font size with CSS

Change font size with CSS
     


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
  
  <mx:Style>
    @namespace mx "http://www.adobe.com/2006/mxml";
    mx|ComboBox, mx|TextInput, mx|Label { 
       font-size:24 
    }
  </mx:Style>
  
  <mx:ArrayCollection id="sizeData">
    <mx:String>Small</mx:String>
    <mx:String>Medium</mx:String>
    <mx:String>Large</mx:String>
  </mx:ArrayCollection>
  
  <mx:Label text="selectedIndex: {sizeCB.selectedIndex}"/>
  <mx:Label text="selectedItem: {sizeCB.selectedItem}"/>
  <mx:Label text="Text: {sizeCB.text}"/>

  <mx:ComboBox id="sizeCB" dataProvider="{sizeData}" prompt="Select an item" editable="true"/>
    
</mx:Application>

   
    
    
    
    
  








Related examples in the same category

1.Point to defined ranges with unicodeRange attribute of @font-face declaration
2.Set device fontSet device font
3.Embed a.ttf font file
4.Apply embedded font inlineApply embedded font inline
5.Embedding a font by specifying a filenameEmbedding a font by specifying a filename
6.Reuse the embedded font inside other style definitionsReuse the embedded font inside other style definitions
7.Set fontFamily style property in MXMLSet fontFamily style property in MXML
8.Use tagUse <font> tag
9.define the fontSize property with a value of 20 pixelsdefine the fontSize property with a value of 20 pixels
10.Sub Component Inheritance for font size styleSub Component Inheritance for font size style
11.Define fontSize, an inheritable property, to the global selectorDefine fontSize, an inheritable property, to the global selector
12.Fonts are inheritable style propertiesFonts are inheritable style properties
13.Embed fonts by location by using the [Embed] tag syntaxEmbed fonts by location by using the [Embed] tag syntax
14.Embed same font for different character ranges
15.Setting ranges in font-face declarationsSetting ranges in font-face declarations
16.List embedded fonts
17.Specify fontWeight and fontStyle in the @font-face and selector blocksSpecify fontWeight and fontStyle in the @font-face and selector blocks
18.Load font from ttf file and use it in style
19.Add font weight to embedded font
20.Define and use font faceDefine and use font face
21.Set unicode range for font faceSet unicode range for font face
22.Font face and font familyFont face and font family
23.Make maxFontSize and minFontSize properties that you defined as variables usableMake maxFontSize and minFontSize properties that you defined as variables usable
24.Use embedded fonts for your axis titlesUse embedded fonts for your axis titles
25.Embed Font with ActionScript
26.Use Embedded FontsUse Embedded Fonts
27.Determine All Fonts Installed on a User's ComputerDetermine All Fonts Installed on a User's Computer
28.Style for embedded fontStyle for embedded font
29.The use of the tagThe use of the <font>tag
30.Embed FontEmbed Font
31.Set the fontSize to 15 and the color to 0x9933FFSet the fontSize to 15 and the color to 0x9933FF
32.selector defines the fontSize as x-smallselector defines the fontSize as x-small
33.Device FontDevice Font
34.Use myFontFamily, the value of the fontFamily property, as the font in the VGroup type selectorUse myFontFamily, the value of the fontFamily property, as the font in the VGroup type selector
35.Embedded Font Face InlineEmbedded Font Face Inline
36.Embedded Font Face with ActionScript By Location
37.Detecting Embedded FontsDetecting Embedded Fonts
38.Enumerate FontsEnumerate Fonts
39.Embedded Font Character RangeEmbedded Font Character Range
40.Embed same font twice, each time restricting the font to different character ranges.Embed same font twice, each time restricting the font to different character ranges.
41.Emebedded font familiesEmebedded font families
42.Embed both a non-CFF version and a CFF version of the fontEmbed both a non-CFF version and a CFF version of the font
43.Apply boldface or oblique type to controls inline
44.Multiple FacesMultiple Faces
45.Apply Multiple Faces InlineApply Multiple Faces Inline