Ok ... so I inserted some trace statements and could confirm that it's looking for a file with the same name, but "swf" suffix in the same directory the font files were located, so I have to name it "fonts/flat-ui-icons-regular.swf".
But unfortunately nothing seems to happen. It does load the file correctly, but I still have the question-mark checkboxes and radio-buttons. From looking at the code it sort of looks as if after finishing loading the files, nothing really happens with the loaded file. I bet this is because in the original the FlatUIIcons.as class is used, which isn't when I compile with the fontkit tool. Is there a way to get the fonts in my application or is this simply something that hasn't been completely finished yet? And ... is this documented somewhere? I did a lot of searching, but I couldn't find any reference that would have led me to the CSSFontFaceBead. Chris ________________________________ Von: Christofer Dutz <christofer.d...@c-ware.de> Gesendet: Mittwoch, 6. Juli 2016 16:32:05 An: dev@flex.apache.org Betreff: AW: AW: [FlexJS] How is the Flat-UI Font SWF used in ASIS? Ok ... found the code ... yes it looks like it uses all the src values configured and iterates over them. So does that mean, in order to work, I have to place the swf file in a "fonts" directory alongside the application SWF and name the swf like in the src attribute, but with the "swf" file ending instead? Gee ... have to think of a way to achieve this in Maven ... Chris ________________________________ Von: Alex Harui <aha...@adobe.com> Gesendet: Mittwoch, 6. Juli 2016 16:26:34 An: dev@flex.apache.org Betreff: Re: AW: [FlexJS] How is the Flat-UI Font SWF used in ASIS? I think it is done in CSSFontFaceBead. On 7/6/16, 7:18 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote: >Yeah ... I found that out myself. I am currently creating the SWF by >using the fontkit directly. It's producing the font swf file, but how >does the rest of ASJS know about the font-swf? I couldn't find the link. >Where is the file consumed anywhere. I managed to get the JavaScript to >use the font-definition in form of the oft files, but nowhere I could >find the link on the Flash side. I would have expected a source of "swf", >but I couldn't find any. > > >Chris > >________________________________ >Von: Alex Harui <aha...@adobe.com> >Gesendet: Mittwoch, 6. Juli 2016 16:02:05 >An: dev@flex.apache.org >Betreff: Re: [FlexJS] How is the Flat-UI Font SWF used in ASIS? > >The Ant script in frameworks/fontsrc runs the regular Flex SDKs mxmlc to >create the font swf. The regular Flex SDK has to have opted in to the >font kit jars. > >HTH, >-Alex > >On 7/6/16, 5:47 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote: > >>Hi, >> >> >>I just finished a major refactoring of the build, that now builds the >>Flat-UI-Icon font and nicely bundles that with the BindingExample_Flat >>for example. But still I haven't found a way to use the font in the Flash >>version. We can't compile it in as Falcon still is lacking this >>functionality, but I haven't seen how the Ant build introduces the Font >>SWF to the Flash build. >> >> >>Could anyone here give me a pointer to this? >> >> >>By the way ... I think I fixed even more stuff, tested the JavaScript >>applications even more and added a few new Bugs as comments to the >>pom.xml >> >> >>Chris >