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

Designate which typefaces have programming ligatures #162

Closed
ghost opened this issue Jul 21, 2017 · 14 comments
Closed

Designate which typefaces have programming ligatures #162

ghost opened this issue Jul 21, 2017 · 14 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2017

Possibly to augment: #119

https://www.hanselman.com/blog/MonospacedProgrammingFontsWithLigatures.aspx

screen shot 2017-07-21 at 2 16 51 pm

@chrissimpkins
Copy link
Owner

chrissimpkins commented Jul 21, 2017

I like that idea. Have a suggestion about how best to do so? Simple flag next to typeface name?

@ghost
Copy link
Author

ghost commented Jul 21, 2017

Maybe group them together in the list, and/or include the ligatures in the font specimen? Might be tricky since they all don't have the same ligatures. However, maybe examples like the ones above could be used—ones that represent common programming character groupings.

Fira Code does a ton of that. https://github.com/tonsky/FiraCode
https://github.com/tonsky/FiraCode/blob/master/distr/specimen.html

screen shot 2017-07-21 at 2 25 46 pm

@chrissimpkins
Copy link
Owner

Interested in contributing to this effort? We can definitely update the specimen across fonts to demonstrate examples of commonly used ligatures across all of the fonts. Problem is, I don't know if our rendering approach will print the ligatures in the images. If successful, would be a way for those who like ligatures to compare appearance / alignment issues across all fonts in the collection.

@ghost
Copy link
Author

ghost commented Jul 21, 2017

Yeah for sure. What do you need?

@chrissimpkins
Copy link
Owner

Will check the specimen over the weekend. My thought would be to add a single line of commonly used ligature combinations as the final line of the specimen. Perhaps you could PR in the ligature glyph combinations that are the most commonly used/most important for comparison of fonts as that line in the specimen?

@kevinSuttle
Copy link
Contributor

Sounds good!

@chrissimpkins
Copy link
Owner

Here is our main README page text specimen file that we use to build the specimen images.

https://github.com/chrissimpkins/codeface/blob/master/samplecode/test-pattern.txt

Want to PR in one line in that file with what you view as most commonly used glyph combinations that are re-formatted as source code ligatures? We can try to re-generate all of the images with our script and see if it accounts for the ligatures features code in the fonts that include it. If not, we may be stuck for specimen display and an alternative would be a badge(?) next to the name of fonts that include ligatures.

@chrissimpkins
Copy link
Owner

I suppose the goal here would be to demonstrate breadth of support for ligatures that are used across programming languages rather than a purely language specific use situation if possible.

@kevinSuttle
Copy link
Contributor

Cool. I'll take a look.

@kevinSuttle
Copy link
Contributor

So, the "in one line" could prove an issue.
Check out all the ligatures here:

https://github.com/tonsky/FiraCode/blob/master/showcases/all_ligatures.png

I got to:

-> --> ==> -> => <=< <=> >>- >>= <~> ~= != === !== && || >=<= <|| </> <!-- www && ?? !! i++ #### *** 0xFF := #! ;; 

and decided I should check with you first.

@chrissimpkins
Copy link
Owner

showcase of ligatures isn't primary objective of the gallery, just a snapshot that shows commonly used ones would be my thought. let's stick with one line of what you feel are the best examples of broadly used ligatures.

kevinSuttle added a commit to kevinSuttle/codeface that referenced this issue Aug 1, 2017
@chrissimpkins
Copy link
Owner

Merged! Includes badges for fonts that have ligature support. Thanks for contributing this @kevinSuttle! You have been added to our contributors list and dubbed 'The Ligature'.

👍

@ghost
Copy link
Author

ghost commented Aug 8, 2017

Wow thanks, Chris! Super happy to be a part. Thanks for opening this up.

- Kevin "The Ligature" Suttle

@chrissimpkins
Copy link
Owner

😉 thanks for your help to make it better!

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

2 participants