this post was submitted on 09 Nov 2023
536 points (95.7% liked)

Technology

35127 readers
151 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
 

The way they talk about it makes it sound like they invented the written word, but that notwithstanding the fonts actually look really nice in my opinion.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

Would this work in vs code only?

[–] [email protected] 19 points 1 year ago (2 children)

It's a font. It'll work anywhere

[–] [email protected] 6 points 1 year ago (3 children)

Even the textual healing? That seems to require a dynamic process that analyses the text, no?

Or are fonts capable of that?

[–] [email protected] 17 points 1 year ago (1 children)

Contextual alternates are normally used for certain scripts, like Arabic, where the shape of each glyph depends on the surrounding glyphs. And they are also used for cursive handwriting fonts where the stroke of the “pen” might have different connection points across letters. Texture healing is a novel application of this technology to code.

basically fonts were already capable of using alternate versions of characters based on their nearby characters, so they used that for these fonts to allow for seemingly-dynamic sizing/spacing

[–] [email protected] 5 points 1 year ago

I was actually gonna ask about this point, thanks for the context.

[–] [email protected] 11 points 1 year ago

Open type fonts have these capabilities built in. It's up to the designer to implement it in useful ways like this.

[–] [email protected] 2 points 1 year ago

It’s in the article:

This swapping is powered by an OpenType feature called “contextual alternates,” which is widely supported by both operating systems and browser engines.

[–] [email protected] 3 points 1 year ago (1 children)

Do modern IDEs allow for setting different fonts for comments, human written code, Copilot written code, etc? I don't do much actual coding these days, so it's been a while. I'm used to just seeing different colors but for things like comments and reserved words, but not fonts like they showed in the examples.

[–] [email protected] 1 points 1 year ago

Not copilot code specifically, but you can select different fonts for comments and regular code, yeah