cross device/platform fonts and text layout?

64 views
Skip to first unread message

TroyWorks

unread,
Feb 9, 2015, 2:06:36 PM2/9/15
to haxe...@googlegroups.com
Curious if there's any tips, api, libs on doing cross platform text layout. Mac, PC, ipad etc.

I'm most familiar with flash, and TLF, which is one option, but not really keen on AIR these days.

JLM

unread,
Feb 10, 2015, 5:02:51 AM2/10/15
to haxe...@googlegroups.com
Hugh as added rotation of text in NME, don't know if that has leaked into OpenFL yet, I am not sure how much css in flash is supported by OpenFL and NME, probably best to try.

if you want a bit more control you can parse fonts it gets metrics so you can arrange letters yourself.
http://code.google.com/p/hxswfml/source/browse/trunk/src/be/haxer/hxswfml/FontWriter.hx

but you could use svg glyh's and hardcode some spacing and get letters and words to follow curves, but it's quite hard work an I have only really played..
https://github.com/Justinfront/Letters

But I don't know of anything for doing layouts of text accept maybe trying some of the haxe component libraries, but they maybe heavy on html, you could just use css and html via cocktail, which should work in OpenFL/NME.

Daniel Uranga

unread,
Feb 10, 2015, 1:28:41 PM2/10/15
to haxe...@googlegroups.com
I've been working in an Openfl extension that you might find useful https://github.com/DanielUranga/openfl-harfbuzz
It uses Freetype + Harfbuzz to do text rendering + layout.

It works only in native platforms (Mac, PC, Ipad, etc)

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages