Hi Jon,

I'll try to answer your questions one by one :-)

1) I understand your point ... even without looking at the code I can confirm 
that currently there is no way to prevent this ... currently ... eventually it 
would be a good idea to remove that "auto-adding" code. I never really liked it 
anyway ;-) I think a user should always explicitly specify the skin he wants to 
use. 

2) There are several problems with IntelliJ not being 100% compatible with the 
new FLEX SDK structure. The initial SDKs Velo used to distribute and for which 
IntelliJs Flexmojos support was created for consisted of one artifact. Now 
there are up to 3 artifacts ... flex-compiler, air-compiler, fontkit. 
Unfortunately IntelliJ seems to correctly detect the flex-compiler artifact, 
but not the others. That's probably why IntelliJ is complaining about missing 
FontManagers ... but that's just a wild guess. I would assume that the CFFFont 
stuff uses the fontkit to cross-compile the font to flash and the batik one 
uses Batik, which is included in the FDK (You could try to hack in the fontkit 
by adding a dependency on the fontkit libs into the flex-compiler pom and have 
IntelliJ re-detect the FDK ... if this works, it would be great, if you could 
tell me about it ... at least then I could try working on a workaround. But I 
am expecting IntelliJ integration to improve even more in the next few months.

3) Regarding the timeline ... well ... what should I say? ;-) ... Currently I'm 
trying to tie up some loose ends. The probably biggest loose end is the mobile 
packaging support. I did manage to get Android packaging working (With and 
without the Captive Runtime), but all of the others will probably need quite a 
lot of work. I guess as soon as that's finished, I could start the Release. But 
it's a pretty tricky thing, as I have to tweak Flexmojos and the 
flex-sdk-converter in parallel and I want to get the converter 99%perfect as I 
know that as soon as that's released, changing anything will be difficult to 
impossible and I'll have to live with the mistakes till the end of time. 

If someone could help me a little with the mobile packaging, this would be a 
real big help ... for iOS for example I am currently getting valid iOS packages 
out of my build and I am able to install them on my devices, but the executable 
inside the package is simply 0bytes big. As soon as I start the app, the icon 
becomes dark gray and the icons states "install..."  ... I have tried digging 
into what's actually happening in the AIR iOS cross compiler, but that's some 
really crazy shit happening in there ;-) I guess as soon as I get valid iOS 
packages, the native packaging for Windows and Mac should be easy (Here too I 
am getting valid packages, but they just don't do anything ;-) )

Currently most of my time was consumed with sitting at the beach (was on 
holidays for a few days) and that nasty CVE in BlazeDS that needed immediate 
attention.

Hope I could answer your questions. If you have any others, I'll try to help 
you as soon as possible.

Chris


________________________________________
Von: marstonstudio <[email protected]>
Gesendet: Donnerstag, 20. August 2015 20:29
An: [email protected]
Betreff: Flex Mojos Fonts and Theme Questions

Hello,

I've been working on a project that uses provides a Flash microphone
fallback for a cross-browser HTML5 getUserMedia() object. It's a work in
progress here: https://github.com/marstonstudio/crossUserMedia

I'm using Flex Mojos 7.1.0-SNAPSHOT for compiling the Flash element, the
pom.xml file is here:
https://github.com/marstonstudio/crossUserMedia/blob/master/crossUserMicrophone/pom.xml
(contents pasted below)

I have a few questions, much appreciated any guidance from fellow users of
this plugin.

1) My project is ActionScript-only and does not use any Flex components or
themes. When I run the maven build I get this message in the console:
"[WARNING] No themes are explicitly defined in the <theme> section or in any
scope="theme" dependencies. Flexmojos is now attempting to figure out which
themes to include. (to avoid this warning you should explicitly state your
theme dependencies)
[WARNING] Adding spark theme because spark.swc was included as a dependency"

Is there a way to explicitly tell Flex Mojos that it's an ActionScript-only
project and skip looking for a theme?


2) I've been unable to get the better font managers to work, and I'm unable
to embed otf fonts. I'm working from standalone maven compilation and
IntelliJ. I've read these articles and blog posts:
https://dev.c-ware.de/confluence/display/PUBLIC/Embedding+%28CFF%29+fonts
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7e09.html
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f5f.html
http://apache-flex-users.2333346.n4.nabble.com/Flex-Mojos-compilation-Compile-embeded-font-td6262.html
http://blog.johannest.com/2010/05/19/on-using-the-embed-tag-with-fontstyle-fontweight-properties/comment-page-1/

I downloaded and mavenized the fontkit and tried variations of including the
jars as dependencies.

If I only have AFEFontManager and CFFFontManager defined in the pom.xml
<managers>

    <manager>flash.fonts.AFEFontManager</manager>
    <manager>flash.fonts.CFFFontManager</manager>
</managers>

and I try and embed Arial.ttf when I build in Intellij i get the error
"Error:(29, 0) [crossUserMicrophone]: exception during transcoding: No
FontManager provided. Cannot build font.". The standalone Maven build
appears to succeed, but the fonts are not actually embedded. Intellij build
succeeds if BatikFontManager is enabled.

If I try and embed the SourceSansPro-Regular.otf font then I get the error
"Error:(31, 0) [crossUserMicrophone]: exception during transcoding: Font for
alias 'recorderFont' with plain weight and style was not found at:
file:/Users/jon/Workspace/github/crossUserMedia/crossUserMicrophone/src/main/flex/../resources/SourceSansPro-Regular.otf"

Any ideas from looking at my pom.xml why the AFEFontManager and
CFFFontManager don't seem to be loading? My Font embeds look like this

        [Embed( source = "../resources/Arial.ttf",
                mimeType = "application/x-font-truetype-collection",
                fontFamily = "recorderFontTTF",
                fontWeight="Regular",
                fontStyle="Regular",
                embedAsCFF="true")]
        private var recorderFontEmbedTTF:Class;

        [Embed( source = "../resources/SourceSansPro-Regular.otf",
                mimeType = "application/x-font-opentype",
                fontFamily = "recorderFontOTF",
                fontWeight="Regular",
                fontStyle="Regular",
                embedAsCFF="true")]
        private var recorderFontEmbedOTF:Class;


3) Last question: any timeline for final release of 7.1.0? Great job by
Christofer Dutz keeping the flame burning and keeping flexmojos growing
along with the rest of the Apache Flex Framework


Guidance on question #2 especially appreciated,

Jon Marston



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.marstonstudio</groupId>
        <artifactId>crossUserMedia</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <artifactId>crossUserMicrophone</artifactId>
    <packaging>swf</packaging>
    <name>crossUserMedia Microphone</name>

    <properties>
        <flex.version>4.14.1</flex.version>
        <player.version>14.0</player.version>
        <configurationReport>true</configurationReport>
        <skipTests>true</skipTests>
    </properties>

    <build>
        <finalName>crossUserMicrophone</finalName>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>7.1.0-SNAPSHOT</version>
                <extensions>true</extensions>

                <dependencies>
                    <dependency>
                        <groupId>org.apache.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe</groupId>
                        <artifactId>fontkit</artifactId>
                        <version>1.0</version>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>afe</artifactId>
                        <version>1.0</version>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>aglj40</artifactId>
                        <version>1.0</version>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>rideau</artifactId>
                        <version>1.0</version>
                    </dependency>
                </dependencies>
                <configuration>

                    <sourceFile>Main.as</sourceFile>
                    <defaultSize>
                        <width>215</width>
                        <height>138</height>
                    </defaultSize>
                    <defaultBackgroundColor>#F5F5DC</defaultBackgroundColor>
                    <defaultFrameRate>24</defaultFrameRate>

                    <flashVersion>${player.version}</flashVersion>
                    <headlessServer>true</headlessServer>
                    <storepass>changeit</storepass>
                    <debug>true</debug>

                    <fonts>
                        <advancedAntiAliasing>true</advancedAntiAliasing>

                        <managers>

                            <manager>flash.fonts.BatikFontManager</manager>
                            <manager>flash.fonts.AFEFontManager</manager>
                            <manager>flash.fonts.CFFFontManager</manager>
                        </managers>
                    </fonts>
                    <localesCompiled>
                        <locale>en_US</locale>
                    </localesCompiled>

                    <defines>
                        <property>
                            <name>BUILD::timestamp</name>
                            <value>"${maven.build.timestamp}"</value>
                        </property>
                    </defines>

                </configuration>
            </plugin>
        </plugins>

        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>

    </build>

    <dependencies>
        <dependency>
            <groupId>org.apache.flex</groupId>
            <artifactId>framework</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flash.framework</groupId>
            <artifactId>playerglobal</artifactId>
            <version>${player.version}</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>org.flexunit</groupId>
            <artifactId>flexunit</artifactId>
            <version>4.1.0</version>
            <classifier>flex4</classifier>
            <type>swc</type>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Flex-Mojos-Fonts-and-Theme-Questions-tp10999.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to