Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font [BUG] #403

Open
Espigah opened this issue Mar 6, 2014 · 13 comments
Open

Font [BUG] #403

Espigah opened this issue Mar 6, 2014 · 13 comments

Comments

@Espigah
Copy link

Espigah commented Mar 6, 2014

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
Copy link
Author

Espigah commented Mar 6, 2014

try_font

@yanhick
Copy link
Member

yanhick commented Mar 12, 2014

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

@Espigah
Copy link
Author

Espigah commented Mar 21, 2014

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
Copy link
Author

Espigah commented Mar 21, 2014

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
Copy link
Author

Espigah commented Mar 21, 2014

untitled-1

@Espigah
Copy link
Author

Espigah commented Jul 6, 2014

@yanhick some tips on how to do in FlashDevelop?

@Espigah
Copy link
Author

Espigah commented Jul 6, 2014

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

@yanhick
Copy link
Member

yanhick commented Jul 7, 2014

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
#403 (comment).

@Espigah
Copy link
Author

Espigah commented Jul 11, 2014

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
Copy link
Author

Espigah commented Jul 11, 2014

fonts_i2

@Espigah
Copy link
Author

Espigah commented Jul 11, 2014

fonts_n2

@Espigah
Copy link
Author

Espigah commented Jul 11, 2014

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

@fsimoes
Copy link

fsimoes commented Jul 17, 2014

@yanhick Any news about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants