Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4086517BB1 for ; Tue, 30 Sep 2014 16:21:35 +0000 (UTC) Received: (qmail 69467 invoked by uid 500); 30 Sep 2014 16:21:34 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 69353 invoked by uid 500); 30 Sep 2014 16:21:34 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 69089 invoked by uid 99); 30 Sep 2014 16:21:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 16:21:34 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christofer.dutz@c-ware.de designates 157.56.112.136 as permitted sender) Received: from [157.56.112.136] (HELO emea01-am1-obe.outbound.protection.outlook.com) (157.56.112.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 16:21:30 +0000 Received: from DBXPR05MB237.eurprd05.prod.outlook.com (10.242.143.147) by DBXPR05MB240.eurprd05.prod.outlook.com (10.242.143.154) with Microsoft SMTP Server (TLS) id 15.0.1039.15; Tue, 30 Sep 2014 16:21:06 +0000 Received: from DBXPR05MB237.eurprd05.prod.outlook.com ([169.254.14.106]) by DBXPR05MB237.eurprd05.prod.outlook.com ([169.254.14.106]) with mapi id 15.00.1039.011; Tue, 30 Sep 2014 16:21:06 +0000 From: Christofer Dutz To: "users@flex.apache.org" Subject: AW: How to embedd font and apply it to s:Label flex 4.10? Thread-Topic: How to embedd font and apply it to s:Label flex 4.10? Thread-Index: AQHP3LUph8/eXizfkUyybWGR39iq9ZwZxJCAgAAWcdU= Date: Tue, 30 Sep 2014 16:21:06 +0000 Message-ID: <1412094061169.35949@c-ware.de> References: <1412082347176-8216.post@n4.nabble.com>,<879BB722-FD5B-4C24-A366-962D9A73F326@veeops.com> In-Reply-To: <879BB722-FD5B-4C24-A366-962D9A73F326@veeops.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [109.44.3.69] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:DBXPR05MB240; x-forefront-prvs: 0350D7A55D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(51704005)(24454002)(199003)(377454003)(46102003)(120916001)(74482002)(92566001)(86362001)(15975445006)(15202345003)(20776003)(66066001)(87936001)(101416001)(64706001)(107046002)(2656002)(110136001)(92726001)(575784001)(85306004)(75402003)(107886001)(36756003)(19580395003)(50986999)(54356999)(2351001)(19580405001)(76176999)(105586002)(229853001)(10300001)(106356001)(106116001)(95666004)(117636001)(97736003)(99396003)(2501002)(85852003)(31966008)(21056001)(4396001)(77096002);DIR:OUT;SFP:1102;SCL:1;SRVR:DBXPR05MB240;H:DBXPR05MB237.eurprd05.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: c-ware.de X-Virus-Checked: Checked by ClamAV on apache.org There is a problem in Flexmojos which is probably the cause of this.=0A= I documented the problem and the solution here: =0A= https://dev.c-ware.de/confluence/display/PUBLIC/Configuring+your+poms=0A= =0A= Have a detailed look at "things i recommend to change". Adding the threadlo= caltoolkit dependency should resolve your problem.=0A= =0A= Chris=0A= =0A= ________________________________________=0A= Von: Mick Powell =0A= Gesendet: Dienstag, 30. September 2014 16:58=0A= An: users@flex.apache.org=0A= Betreff: Re: How to embedd font and apply it to s:Label flex 4.10?=0A= =0A= @4xy=0A= =0A= I had a similar problem once and it was because I hadn't compiled in the Em= bedded Font Registry. To do this you can create a property in your main.MXM= L file:=0A= =0A= import mx.core.EmbeddedFontRegistry;=0A= private var embeddedFontRegistry:EmbeddedFontRegistry;=0A= =0A= Even if that doesn't fix your specific problem, my experience has been that= you do need to include the Embedded Font Registry when working with embedd= ed fonts.=0A= =0A= Hope that helps=0A= =0A= On Sep 30, 2014, at 7:05 AM, 4xy wrote:=0A= =0A= > Hi,=0A= >=0A= > I try to achieve the subject mentions goal, but with no success. I wasted= =0A= > about two days but with no success. Nothing that talked about on the web= =0A= > works for me.=0A= >=0A= > I'm using flexmojos & maven to build the app.=0A= > I found out that sytles apply to mx:Label, but s:Label doesn't work (on= =0A= > desktop & mobile).=0A= > The project running on desktop and mobile platforms.=0A= >=0A= > Here is subset of links I found. Unfortunately nothing helped.=0A= >=0A= > http://blogs.adobe.com/jasonsj/2011/08/embedding-fonts-in-flex-mobile-pro= jects.html=0A= > https://docs.sonatype.org/display/FLEXMOJOS/FAQ=0A= > https://docs.sonatype.org/display/FLEXMOJOS/Using+Adobe+Font+Manager+to+e= mbed+fonts=0A= > https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Embedding+(CFF)+fo= nts=0A= > http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf690= 84-7f5f.html=0A= > I also read this.=0A= > http://apache-flex-users.2333346.n4.nabble.com/CFF-fonts-render-bolder-in= -Apache-4-9-over-Adobe-4-1a-td979.html#a986=0A= >=0A= > The font is here=0A= > http://www.dafont.com/explora.font=0A= > I tried to convert it to .otf and .cff. In case with cff I get the=0A= > transocode error while compile.=0A= > .otf similar to .ttf doesn't work.=0A= >=0A= > That is my css file:=0A= >=0A= > -- main.css --=0A= >=0A= > ...=0A= >=0A= > @font-face {=0A= > src:url("../resources/assets/explora.ttf");=0A= > fontFamily: "ExploraCFF";=0A= > fontWeight: bold;=0A= > embedAsCFF: true;=0A= > }=0A= >=0A= > @font-face {=0A= > src:url("../resources/assets/explora.ttf");=0A= > fontFamily: "Explora";=0A= > fontWeight: bold;=0A= > embedAsCFF: false;=0A= > }=0A= >=0A= > .nameLabelExplora=0A= > {=0A= > fontFamily: "ExploraCFF";=0A= > fontLookup: "embeddedCFF";=0A= > }=0A= >=0A= > ...=0A= >=0A= > -- main.mxml --=0A= >=0A= > ...=0A= >=0A= > =0A= >=0A= > paddingLeft=3D"5" paddingRight=3D"5" styleName=3D"nameLabelEx= plora"/>=0A= >=0A= > ...=0A= >=0A= > In my pom.xml I added font managers and dependencies for=0A= > flexmojos-maven-plugin=0A= > -- pom.xml --=0A= >=0A= > =0A= > net.flexmojos.oss=0A= > flexmojos-maven-plugin=0A= > 6.0.1=0A= > true=0A= > =0A= > =0A= > ${flex.debug}=0A= > =0A= > =0A= > CONFIG::debug=0A= > ${flex.debug}=0A= > =0A= > =0A= >=0A= > true= =0A= >=0A= > =0A= > =0A= > flash.fonts.AFEFontManager=0A= > flash.fonts.CFFFontManager=0A= > =0A= > =0A= >=0A= > =0A= >=0A= > =0A= > =0A= > com.adobe.flex.framework=0A= > flex-framework=0A= > ${flex.version}=0A= > pom=0A= > =0A= > =0A= > com.adobe.flex=0A= > compiler=0A= > ${flex.version}=0A= > pom=0A= > =0A= >=0A= > =0A= > com.adobe.flex.compiler=0A= > flex-fontkit=0A= > ${flex.version}=0A= > =0A= >=0A= > =0A= > com.adobe.flex.compiler=0A= > afe=0A= > ${flex.version}=0A= > =0A= >=0A= > =0A= > com.adobe.flex.compiler=0A= > aglj40=0A= > ${flex.version}=0A= > =0A= >=0A= > =0A= > com.adobe.flex.compiler=0A= > rideau=0A= > ${flex.version}=0A= > =0A= >=0A= > =0A= > =0A= >=0A= >=0A= > Could anybody tell me how to achieve the spark label to be styled within = the=0A= > custom font?=0A= >=0A= >=0A= >=0A= >=0A= > --=0A= > View this message in context: http://apache-flex-users.2333346.n4.nabble.= com/How-to-embedd-font-and-apply-it-to-s-Label-flex-4-10-tp8216.html=0A= > Sent from the Apache Flex Users mailing list archive at Nabble.com.=0A=