Skip to content
New issue

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

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

Already on GitHub? # to your account

add ligature support #21

Open
zeke opened this issue Dec 3, 2012 · 11 comments
Open

add ligature support #21

zeke opened this issue Dec 3, 2012 · 11 comments

Comments

@zeke
Copy link

zeke commented Dec 3, 2012

I'm keen on getting ligature support implemented in fontcustom, as Webkit doesn't currently support CSS transitions on :before elements and I find it cumbersome to have to use UTF8 characters like &#xf100 in my HTML code. I peeked around a little in the fontforge docs, but it didn't seem immediately obvious how to go about adding ligatures. Have you guys looked into it much?

In the implementation I'm imaginging, the ligatures would be determined by the original SVG filenames, e.g. foo.svg becomes foo.

Here's my interim workaround:

# This helper is a stand-in until one of these problems is fixed:
# 
#1. fontcustom supports ligatures
#2. webkit supports CSS transitions on :before elements
def icon_for(word)
  words = %w(fukuoka github moon sun twitter)
  return "?" unless words.include?(word.to_s)
  "&#xf#{100 + words.index(word.to_s)}".html_safe
end
@endtwist
Copy link
Member

endtwist commented Dec 4, 2012

The API for adding ligatures in fontforge is quite confusing. I'm working my way through it to add support as soon as possible, though.

@ghost ghost assigned endtwist Dec 4, 2012
@zeke
Copy link
Author

zeke commented Feb 9, 2013

Update: Chrome Canary now supports CSS transitions on :before elements, but ligature support would still be nice. @endtwist how can I help push this forward?

@endtwist
Copy link
Member

I haven't really had enough time to dig into/experiment with ligature support yet. If you'd like to, though, take a look at the FontForge Python docs: http://fontforge.org/python.html

I believe the implementation will involve using the "addLookup" method (under "font") with a "gsub_ligature" type. However, that's as far as I've gotten w/r/t looking into a solution.

@jareware
Copy link

Any progress on this? Would be lovely!

@zeke
Copy link
Author

zeke commented Apr 15, 2013

I put a bounty on this feature: https://www.bountysource.com/#issues/154665-add-ligature-support

@skyzyx
Copy link

skyzyx commented Feb 18, 2014

👍

@jasmussen
Copy link

Another vote for ligature support in FontCustom.

@dashie
Copy link

dashie commented Oct 1, 2014

I've added a simple ligature support solution [https://github.com/dashie/fontcustom].

@JoshuaWise
Copy link

+1

@dsozzi
Copy link

dsozzi commented Jun 29, 2016

is the ligature complete? I saw @dashie implemented a solution. Is this included in Head?

@tomasdev
Copy link

Bump!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

10 participants