[flexcoders] Using Embedded fonts in htmlText

2006-08-31 Thread Bart Vanhulle










I was wondering if someone managed to achieve this. After
struggling with embedding some fonts I finally got it working to some degree.

The fonts are taken in most components. However, when Im
trying to use an embedded font in a font tag and drop it in the
htmlText attribute of a TextArea, the text is not using the embedded font,
although the documentation claims it should. (devguide, Using tags in
html text)



This is what I have in the css:



@font-face {

 src:
url('/assets/fonts/arial_emb.ttf');

 fontWeight:
normal;

 fontFamily:
arialtest

}



.textarea { embedFonts: true; font-weight: normal; }



In the component I have something like this:



mx:TextArea id=info width=200
height=100 htmlText= /



info.htmlText = font face='arialtest'
size='14'test test test test/font;



This will take the default font setting of the flash
application. arialtest is never applied.



This however works:



mx:TextArea id=info width=200
height=100 fontFamily=arialtest htmlText= /



info.htmlText = font size='14'test test test
test/font;



But this is not what I want as there will be text in
different formatting styles in that field



Bart










__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





RE: [flexcoders] Using Embedded fonts in htmlText

2006-08-31 Thread Bart Vanhulle












Thank you for the suggestion. It tried it
on the TextArea but it didnt work. (putting it in the css and applying it via the
styleName).

I might give it a try with the UITextField
component later on, maybe it will work then.



I wonder if this should be filed as a bug
as the documentation clearly states that the face attribute in the font tag
also checks for embedded fonts



Bart











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman
Sent: donderdag 31 augustus 2006
16:58
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Using
Embedded fonts in htmlText











I don't know why that is happening, and I don't know
what's causing it exactly, but one workaround that I've seen elsewhere that
might work here is to set the fontfamily (Arial, Symbol) to
every font you might want to use in that textarea and then you should using
html be able to set the the htmlText to any font that you have set fontFamily
to (even mixing fonts simultaneously). Don't know why this should
work, but it has for me in UITextFields which is the textfield inside the
TextArea. 



On 8/31/06, Bart
Vanhulle bart.vanhulle@eun.org
wrote:







I
was wondering if someone managed to achieve this. After struggling with
embedding some fonts I finally got it working to some degree.

The
fonts are taken in most components. However, when I'm trying to use an embedded
font in a font tag and drop it in the htmlText attribute of a TextArea,
the text is not using the embedded font, although the documentation claims it
should. (devguide, 'Using tags in html text')



This
is what I have in the css:



@font-face
{


src: url('/assets/fonts/arial_emb.ttf');


fontWeight: normal;


fontFamily: arialtest

}



.textarea
{ embedFonts: true; font-weight: normal; }



In
the component I have something like this:



mx:TextArea
id=info width=200 height=100
htmlText= /



info.htmlText
= font face='arialtest' size='14'test test test
test/font;



This
will take the default font setting of the flash application. arialtest is never
applied.



This
however works:



mx:TextArea
id=info width=200 height=100
fontFamily=arialtest htmlText= /



info.htmlText
= font size='14'test test test test/font;



But
this is not what I want as there will be text in different formatting styles in
that field



Bart






















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] AJAX versus Flex

2006-05-25 Thread Bart Vanhulle



I'm usually only a passive participant in this mailing list but I felt like replying to this.
I as a developer am not free to choose a development platform in our company. I was actually hired because the company was searching for developers who knew stuff about Coldfusion (later moved to flex).
 
When a company wants to do a project they usually study different roads depending on meeting their requirements, what it will cost, how long it will take. They don't go around the employment offices interviewing candidates and ask them what they would like to program in! (exagerating, I know)
I am there to consult/propose possible strategies in the first stage. They usually pick the ones they are familiar with, they are most confident about. After this I can start implementing.
 
With Flex1.5 there was the big cost tag on the whole infrastructure. Having to buy the server was already a big investment, spending months of development time to a rather new approach to RIA's was another horde that wasn't easy to take. Inhouse developers still need to convince the company why to go for specific new technology. The more it's know to them, the easier it can be to convince them of the benefits.
 
I myself am confronted with the AJAX hype in and outside my office. If they want a fancy feature on a website of ours the first thing they come up with is 'can it be done in AJAX?' No one asks if it can be done with Flex, let alone they would ask for a Flex2 implementation.
 
I agree with the first poster. It's time for Adobe to start promoting Flex so that people know that there is something else then AJAX for RIA implementations and with people I don't mean only developers. For me this was already a big problem with Flex1.5 (if it weren't for our personal contacts with the MM people at the time for Coldfusion, we would never have started with Flex projects) I don't think they can afford this again with Flex2...
 
B.



Van: flexcoders@yahoogroups.com namens Carlos Rovira
Verzonden: do 25/05/2006 18:30
Aan: flexcoders@yahoogroups.com
Onderwerp: Re: [flexcoders] AJAX versus Flex


As Michael points, AJAX is the client technology this year, wait until Flex 2 ships and people start knowing what they can do it. It will cost at least a a year or even a bit more that people could see that Flex is another world. 

But finaly, you as a developer, wants to do your job easily...and as you say your client should (most of the times) know if is Flex, VB or HTML...you want to be free as you do your work, isn't it?




2006/5/25, Michael Schmalle [EMAIL PROTECTED]: 

 Hi,
 
 my 0.02 cents.
 
 When you talk about Ajax verses Flex. I think of one thing, Object Oriented Programming. This debate, Ajax vs. Flex, wait one more year and see the code libraries that are abstract and reusable within 2 seconds of loading them on your computer.
 
 See, OOP lends itself well to the I think I can, I think I can, I think I can and then all the sudden your at rocket power. Take the Adobe flex2 framewrok and give it a trigger, I could out perform most that take Ajax and try to figure out the rats nest that comes with all the browsers, the half ass code libraries, etc.
 
 OOP is still new and well, if you know what it is and how powerful it can speed up an entire community of developers, Ajax is then going to have to play catch up.
 
 Flex2 isn't even public yet, so all this grandious, bs that the 'News' likes to fill your head with means nothing to a real Flex2 developer like myself.
 
 As far a Microsoft... who cares! They have been leading for years and will still lead as long as there bank accounts can still pay court battles. There is never just one leader in this world, common, do your homework.
 
 Peace, Mike
 
 
 
 On 5/25/06, jwc_wensan  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote: 

  To all:
  
  Got this email today, http://ajax.sys-con.com/ and it got me to
  thinking.
  
  I may get blasted for this, but here goes . . . just my .0199 cents.
  
  Let me first say I believe 100% that the Flex platform is a 
  better mousetrap. I am currently developing applications with 
  Flex. I prefer Flex.
  
  However, you can not open a software magazine, newsletter, journal, 
  article, etc. that doesn't reference something about AJAX. It's 
  everywhere. Adobe's Flex gets an honorable mention.
  
  I have been in the software business for over 27 years. I have seen 
  many companies come and go that had a better mousetrap. I also 
  realize that most end users do not care if a desktop app is 
  developed with Visual C++ or Visual Basic. So why would they care 
  what a RIA app is developed with. Probably not.
  
  In the end it is the application not the engine.
  
  There seems to be a parallel between PCs with Windows and 
  Apple/Macs. Many believe that the Mac is better, but Apple/Mac has 
  less the 5% of the market.
  
  Can Adobe accept 5% market share?
  
  You also can not under estimate the impact when