Re: How to embedd font and apply it to s:Label flex 4.10?

2014-09-30 Thread Angelo Lazzari
Hi, did you try to set the fontweight=bold to the label?

.nameLabelExplora
{
*   fontWeight: bold;*
  fontFamily: ExploraCFF;
  fontLookup: embeddedCFF;
}

Angelo

2014-09-30 15:05 GMT+02:00 4xy workingfe...@gmail.com:

 Hi,

 I try to achieve the subject mentions goal, but with no success. I wasted
 about two days but with no success. Nothing that talked about on the web
 works for me.

 I'm using flexmojos  maven to build the app.
 I found out that sytles apply to mx:Label, but s:Label doesn't work (on
 desktop  mobile).
 The project running on desktop and mobile platforms.

 Here is subset of links I found. Unfortunately nothing helped.


 http://blogs.adobe.com/jasonsj/2011/08/embedding-fonts-in-flex-mobile-projects.html
 https://docs.sonatype.org/display/FLEXMOJOS/FAQ

 https://docs.sonatype.org/display/FLEXMOJOS/Using+Adobe+Font+Manager+to+embed+fonts

 https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Embedding+(CFF)+fonts

 http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f5f.html
 I also read this.

 http://apache-flex-users.246.n4.nabble.com/CFF-fonts-render-bolder-in-Apache-4-9-over-Adobe-4-1a-td979.html#a986

 The font is here
 http://www.dafont.com/explora.font
 I tried to convert it to .otf and .cff. In case with cff I get the
 transocode error while compile.
 .otf similar to .ttf doesn't work.

 That is my css file:

 -- main.css --

 ...

 @font-face {
   src:url(../resources/assets/explora.ttf);
   fontFamily: ExploraCFF;
   fontWeight: bold;
   embedAsCFF: true;
 }

 @font-face {
   src:url(../resources/assets/explora.ttf);
   fontFamily: Explora;
   fontWeight: bold;
   embedAsCFF: false;
 }

 .nameLabelExplora
 {
   fontFamily: ExploraCFF;
   fontLookup: embeddedCFF;
 }

 ...

 -- main.mxml --

 ...

 fx:Style source=main.css/

 s:Label id=nameLabel color=#7d fontSize=20 paddingTop=3
  paddingLeft=5 paddingRight=5
 styleName=nameLabelExplora/

 ...

 In my pom.xml I added font managers and dependencies for
 flexmojos-maven-plugin
 -- pom.xml --

plugin
 groupIdnet.flexmojos.oss/groupId
 artifactIdflexmojos-maven-plugin/artifactId
 version6.0.1/version
 extensionstrue/extensions
 configuration
 storepass/
 debug${flex.debug}/debug
 defines
 property
 nameCONFIG::debug/name
 value${flex.debug}/value
 /property
 /defines

 staticLinkRuntimeSharedLibrariestrue/staticLinkRuntimeSharedLibraries

   fonts
 managers
   managerflash.fonts.AFEFontManager/manager
   managerflash.fonts.CFFFontManager/manager
 /managers
   /fonts

 /configuration

 dependencies
 dependency
 groupIdcom.adobe.flex.framework/groupId
 artifactIdflex-framework/artifactId
 version${flex.version}/version
 typepom/type
 /dependency
 dependency
 groupIdcom.adobe.flex/groupId
 artifactIdcompiler/artifactId
 version${flex.version}/version
 typepom/type
 /dependency

 dependency
   groupIdcom.adobe.flex.compiler/groupId
   artifactIdflex-fontkit/artifactId
   version${flex.version}/version
 /dependency

 dependency
   groupIdcom.adobe.flex.compiler/groupId
   artifactIdafe/artifactId
   version${flex.version}/version
 /dependency

 dependency
   groupIdcom.adobe.flex.compiler/groupId
   artifactIdaglj40/artifactId
   version${flex.version}/version
 /dependency

 dependency
   groupIdcom.adobe.flex.compiler/groupId
   artifactIdrideau/artifactId
   version${flex.version}/version
 /dependency

 /dependencies
 /plugin


 Could anybody tell me how to achieve the spark label to be styled within
 the
 custom font?




 --
 View this message in context:
 

Re: How to embedd font and apply it to s:Label flex 4.10?

2014-09-30 Thread Mick Powell
@4xy

I had a similar problem once and it was because I hadn't compiled in the 
Embedded Font Registry. To do this you can create a property in your main.MXML 
file:

import mx.core.EmbeddedFontRegistry;
private var embeddedFontRegistry:EmbeddedFontRegistry;

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 embedded fonts. 

Hope that helps

On Sep 30, 2014, at 7:05 AM, 4xy workingfe...@gmail.com wrote:

 Hi,
 
 I try to achieve the subject mentions goal, but with no success. I wasted
 about two days but with no success. Nothing that talked about on the web
 works for me. 
 
 I'm using flexmojos  maven to build the app. 
 I found out that sytles apply to mx:Label, but s:Label doesn't work (on
 desktop  mobile).
 The project running on desktop and mobile platforms. 
 
 Here is subset of links I found. Unfortunately nothing helped. 
 
 http://blogs.adobe.com/jasonsj/2011/08/embedding-fonts-in-flex-mobile-projects.html
 https://docs.sonatype.org/display/FLEXMOJOS/FAQ
 https://docs.sonatype.org/display/FLEXMOJOS/Using+Adobe+Font+Manager+to+embed+fonts
 https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Embedding+(CFF)+fonts
 http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f5f.html
 I also read this.
 http://apache-flex-users.246.n4.nabble.com/CFF-fonts-render-bolder-in-Apache-4-9-over-Adobe-4-1a-td979.html#a986
 
 The font is here
 http://www.dafont.com/explora.font
 I tried to convert it to .otf and .cff. In case with cff I get the
 transocode error while compile. 
 .otf similar to .ttf doesn't work.
 
 That is my css file:
 
 -- main.css --
 
 ...
 
 @font-face {
  src:url(../resources/assets/explora.ttf);
  fontFamily: ExploraCFF;
  fontWeight: bold;
  embedAsCFF: true;
 }
 
 @font-face {
  src:url(../resources/assets/explora.ttf);
  fontFamily: Explora;
  fontWeight: bold;
  embedAsCFF: false;
 }
 
 .nameLabelExplora
 {
  fontFamily: ExploraCFF;
  fontLookup: embeddedCFF;
 }
 
 ...
 
 -- main.mxml --
 
 ...
 
 fx:Style source=main.css/
 
 s:Label id=nameLabel color=#7d fontSize=20 paddingTop=3
 paddingLeft=5 paddingRight=5 styleName=nameLabelExplora/
 
 ...
 
 In my pom.xml I added font managers and dependencies for
 flexmojos-maven-plugin
 -- pom.xml --
 
   plugin
groupIdnet.flexmojos.oss/groupId
artifactIdflexmojos-maven-plugin/artifactId
version6.0.1/version
extensionstrue/extensions
configuration
storepass/
debug${flex.debug}/debug
defines
property
nameCONFIG::debug/name
value${flex.debug}/value
/property
/defines
 
 staticLinkRuntimeSharedLibrariestrue/staticLinkRuntimeSharedLibraries
 
  fonts
managers
  managerflash.fonts.AFEFontManager/manager
  managerflash.fonts.CFFFontManager/manager
/managers
  /fonts
 
/configuration
 
dependencies
dependency
groupIdcom.adobe.flex.framework/groupId
artifactIdflex-framework/artifactId
version${flex.version}/version
typepom/type
/dependency
dependency
groupIdcom.adobe.flex/groupId
artifactIdcompiler/artifactId
version${flex.version}/version
typepom/type
/dependency
 
dependency
  groupIdcom.adobe.flex.compiler/groupId
  artifactIdflex-fontkit/artifactId
  version${flex.version}/version
/dependency
 
dependency
  groupIdcom.adobe.flex.compiler/groupId
  artifactIdafe/artifactId
  version${flex.version}/version
/dependency
 
dependency
  groupIdcom.adobe.flex.compiler/groupId
  artifactIdaglj40/artifactId
  version${flex.version}/version
/dependency
 
dependency
  groupIdcom.adobe.flex.compiler/groupId
  artifactIdrideau/artifactId
  version${flex.version}/version
/dependency
 
/dependencies
/plugin
 
 

Re: How to embedd font and apply it to s:Label flex 4.10?

2014-09-30 Thread Alex Harui
Can you post an example showing the Label and any CSS in about 20 lines of
code?

On 9/30/14 7:33 AM, 4xy workingfe...@gmail.com wrote:

Yes, I tried



--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/How-to-embed-font-and-apply
-it-to-s-Label-in-flex-4-10-tp8216p8219.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: How to embedd font and apply it to s:Label flex 4.10?

2014-09-30 Thread 4xy
Unfortunately it makes no difference whether I include this or not.

Thank you.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-embed-font-and-apply-it-to-s-Label-in-flex-4-10-tp8216p8222.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.