flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: [Flex JS] Font support
Date Sat, 18 Feb 2017 01:00:51 GMT

So I’ve come up with a way that works but not sure it it’s ideal or not. It's certainly
not an obvious way to add font support.

Here’s the main application:
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:fonts="fonts.*">
       <js:SimpleCSSValuesImpl />

        <fonts:Pangolin />
                    <js:Label text="The quick brown fox jumped over the lazy dog.">
                            <js:SimpleCSSStyles fontFamily="Pangolin" />
                    <js:Label text="The quick brown fox jumped over the lazy dog." />

And Pangolin.as used <inject_html> like so:

package fonts {
import org.apache.flex.core.BeadViewBase;

public class Pangolin extends BeadViewBase {
  *  <inject_html>
  *  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Pangolin">
  *  </inject_html>
 public function Pangolin() {

Is BeadViewBase the correct class to extend?


View raw message