Cocktail icon indicating copy to clipboard operation
Cocktail copied to clipboard

Font [BUG]

Open Espigah opened this issue 10 years ago • 13 comments

PureAS3: [...]

font face="comicfont" color="green" size="5">Comic-teste 0</ font span style=" font-family:comic-teste style=color:red">Comic-teste 1 </ span span style=" font-family:comic sans ms,cursive;">Comic-teste 4</ span

nothing works! =/

Espigah avatar Mar 06 '14 20:03 Espigah

try_font

Espigah avatar Mar 06 '14 21:03 Espigah

This won't work for now as @font-face is not implemented. You can embed font when using OpenFL though, check this example : https://github.com/silexlabs/Cocktail/tree/master/samples/10-embedded_font

yanhick avatar Mar 12 '14 14:03 yanhick

I returned it! =) I'm using pure as3 (without openfl) I'm trying to use something from google fonts

As3Project, tried this: [Embed(source="lib/Diplomata-Regular.ttf", fontName = "Diplomata",.......

And this: cssRules = "#content4 {font-family:'Diplomata';}"; myStyle = new CSSStyleSheet(cssRules, PropertyOriginValue.USER_AGENT); document.addStyleSheet(myStyle);

any idea how to help me?

Espigah avatar Mar 21 '14 17:03 Espigah

now...I tried to use a swf generated with openfl + embedded asset/font and uses it.... inside Font.registerFont i see asset/MyFont, but...not working

Espigah avatar Mar 21 '14 19:03 Espigah

untitled-1

Espigah avatar Mar 21 '14 21:03 Espigah

@yanhick some tips on how to do in FlashDevelop?

Espigah avatar Jul 06 '14 14:07 Espigah

assets path="assets/KatamotzIkasi.ttf" rename="KatamotzIkasi.ttf" glyphs="32-255" / doesn't work for me =/

I try this -> assets path="assets" rename="assets" include="*" #miraculouslyWorked

Espigah avatar Jul 06 '14 19:07 Espigah

No sorry, I haven't been using FlashDevelop for a long time.

Cool that you could get it to work !

2014-07-06 21:07 GMT+02:00 Fabricio [email protected]:

assets path="assets/KatamotzIkasi.ttf" rename="KatamotzIkasi.ttf" glyphs="32-255" / doesn't work for me =/

I try this -> assets path="assets" rename="assets" include="*"> #miraculouslyWorked

— Reply to this email directly or view it on GitHub https://github.com/silexlabs/Cocktail/issues/403#issuecomment-48120377.

yanhick avatar Jul 07 '14 07:07 yanhick

FlashDevelop - ok! something curious is happening... works fine when I have the font installed else if uninstall the font cause error because the width is crazy

Espigah avatar Jul 11 '14 17:07 Espigah

fonts_i2

Espigah avatar Jul 11 '14 17:07 Espigah

fonts_n2

Espigah avatar Jul 11 '14 17:07 Espigah

My goal is change the font using the swc , ie, embedding by way of as3.

Espigah avatar Jul 11 '14 17:07 Espigah

@yanhick Any news about this?

fsimoes avatar Jul 17 '14 13:07 fsimoes