And some feedback regarding your pom: 

1) The fontkit dependency should be enough ... no need to add the fontkit 
content a second time
2) You should be able to omit the flashplayer config option, as this 
information is extracted from the playerglobal dependency and the setting was 
initially used to override the playerglobal version the FDK was built with (In 
those times as the FDK contained air, flash and fontkit libs)
3) You can finally omit the "storepass" as I completely rewrote the sign-air 
goal ... 

And regarding your the part with the "Font for alias 'recorderFont' with plain 
weight and style was not found at" ... this is a real PITA and I haven't found 
a way around this yet. In the file the font is stored with a set of attributes. 
You have to embed it with exactly these attributes or the embedding will fail. 
so assuming you had a font which is only included in "italic", if you don't 
embed it with "italic" the trancsoder will fail. I haven't found a tool that 
could simply list the attributes of a font file ... If you know of such a 
thing, I would be delighted and could eventually improve the support (Something 
like in case of an embedding error, simply list the attributes of the fonts in 
that file)

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