FontAwesome5WithApacheFlex
Just a simple demo that shows how to use FontAwesome5 with Apache Flex
Install / Use
/learn @olafkrueger/FontAwesome5WithApacheFlexREADME
"Font Awesome 5" with "Apache Flex"
This is just a simple demo that shows how to use "Font Awesome 5" with "Apache Flex":
Use "Font Awesome 5" within your "Apache Flex" application in four steps, it's pretty straightforward:
-
Download FontAwesome5
-
Grap the *.otf files from the "use-on-desktop" directory and paste it into your Flex project
-
Apply the fonts by some style declaration
<fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @font-face { src: url("fonts/FontAwesome5FreeRegular400.otf"); fontFamily: FontAwesome5Regular; embedAsCFF: true; } @font-face { src: url("fonts/FontAwesome5FreeSolid900.otf"); fontFamily: FontAwesome5Solid; embedAsCFF: true; } @font-face { src: url("fonts/FontAwesome5BrandsRegular400.otf"); fontFamily: FontAwesome5Brands; embedAsCFF: true; } </fx:Style>Notice that spaces and hyphens are removed from the origin *.otf file names here.
-
Use it with e.g. the spark Label component
<s:Label text="\uf058" fontFamily="FontAwesome5Regular" fontSize="100" color="#000000" />Notice that you have to add a leading
\uto the icon code!
You find a list of all icons in the "Font Awesome 5" CheatSheet.
Thanks to the Font Awesome 5 team for the great work and for still providing a free version of it!
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
