HNHacker News
TopNewBestAskShowJobs

tonsky

113 karma · joined April 25, 2014

https://tonsky.me/ https://mastodon.online/@nikitonsky
submissionscomments
tonsky··on Let’s fix font size
too much pictures?
tonsky··on Let’s fix font size
(Logical) Pixels + system-wide scaling, problem solved. Windows already got it (apparently, since Windows 95 times!), macOS too, but more poorly
tonsky··on Let’s fix font size
Clearly you have never tried to center text inside a button
tonsky··on Let’s fix font size
You can set DPI correctly and match physical size, but why? Viewing distance still varies greatly, so there’s no point for a button to be 5mm tall always
tonsky··on Let’s fix font size
In pixels, yes. In physical size, no (pixels are much smaller on 14" than on 18")
tonsky··on Let’s fix font size
In browser, yes. Screenshots are of Sublime Text, which is a native app.
tonsky··on Let’s fix font size
The only font I’ve seen that reported cap height wrong is Ubuntu Mono. Nothing stops designers from misreporting this metric, sure, but in practice it is MUCH more consistent.
tonsky··on Let’s fix font size
My theory is fractional scaling was hard and integer was easy, so they went the easy way. Don’t think artists were asked, since I saw non-integer-scaled iPhone and non-integer-scaled default on retina macbooks (which are both implemented by rendering at higher resolution, leading to worse results than direct frational scaling)
tonsky··on Let’s fix font size
Here’s a picture with more samples:

https://s.tonsky.me/imgs/font_size.png

There’s nothing to hide: some fonts’ height adds up to font-size, some don’t. Because it’s not a rule, you can’t rely on it, so it doesn’t change a narrative.

Fira Code is one of the fonts that don’t add up, though. 31.19 != 32, no matter how hard you massage it.

P.S. for other examples, I also chose the extreme examples to better illustrate the point. But I only chose relatively well-known fonts, so it’s not all random or manipulated.

tonsky··on Let’s fix font size
I just didn’t spent much time actually implementing this. It was a quick joke. BTW emoji stay visible too!
tonsky··on Let’s fix font size
Many fonts are designed so that you’ll set at least 1.2 line height. 1.0 barely fits the characters themselves
tonsky··on Let’s fix font size
Those should not be drawn by font. I believe the only way is for the app, e.g. terminal, to intercept and draw them directly, not through the font. Otherwise you’ll get horizontal gaps too https://github.com/tonsky/FiraCode/issues/449
tonsky··on Let’s fix font size
Comfortable line-height usually has enough space for any diacritics. If you want to go tighter, you’ll need to know you won’t have them. But that’s true today too.
tonsky··on Emoji Under the Hood
You are welcome! Glad you liked it
tonsky··on Emoji Under the Hood
I guess FF ships its own version
tonsky··on The Web After Tomorrow (2015)
So that you will remember it. If it was just a white page, you wouldn’t even recognize it as something different
tonsky··on Time to Upgrade Your Monitor
4k 60Hz should work no problems. Last Macbook that didn’t supported it was 2012 retina.
tonsky··on Time to Upgrade Your Monitor
4k can be driven by Mac at 120Hz, but the mac has to be new enough (2018+ is my guess, based on thunderbolt 3 upgrade in 2018) and have a discrete graphics card.
tonsky··on Time to Upgrade Your Monitor
I don’t really understand the concerns about brightness. On my current display I work at 20% brightness, otherwise my eyes start to hurt.
tonsky··on Time to Upgrade Your Monitor
You get used to it after few days
tonsky··on Time to Upgrade Your Monitor
this is interesting, thank you! And font-weight: 300 has been an old personal nemesis. That explained at least part of it! Do you know if font dilation is on by default?
tonsky··on Syncthing is everything I used to love about computers
macOS becomes more and more crap, but does it mean I can’t express my opinion about other programs anymore?
tonsky··on Syncthing is everything I used to love about computers
The problem with Dropbox is that I have to go to that UI and explicitly exclude each target/classes folder after I create a new project. And I have to do it on every machine. With syncthing it’s just a regexp that will work for existing and all future folders automatically
tonsky··on Syncthing is everything I used to love about computers
This is where theory and practice part ways. If it was a single bug, I’d be happy to file it. I even tried to do so with Jekyll. I located one, found a library, it was already fixed, but not published. Monkey-patched, only to fight next but. And there was not end to it. I didn’t even started looking into pyenv or bazel, which all were also broken in multiple ways.
tonsky··on Syncthing is everything I used to love about computers
I didn’t realize local calendars are still a thing. I though they are all hosted. That’s why I didn’t understand what was offered there
tonsky··on Syncthing is everything I used to love about computers
I think it only depends on product and team and has nothing to do with OSS/commertial/corp. Sublime Text is fantastic and closed-source. Inkscape is horrible and open-source. Syncthing is both. Photoshop is neither. Good pieces are here and there, not in OSS only.
tonsky··on Grumpy Website – a blog about everything wrong with modern web & tech
I would, happily, if you could explain me why?
tonsky··on Software disenchantment
> By "install it", I thought you meant install Windows, which takes for longer than 30 seconds. It's not a straight byte copy. For one, part of the install process compiles code for your variation of CPU architecture.

That was my point. It does something very slow but unnecessary. If you could install it by straight copy, it would be way faster. And there’re no reasons why it can’t be straight copy (or really fast unzip & compile).

> Google Docs, Office 365

Google Docs disables offline mode by defaults. It only works as long as everyone are almost on the same page. It’s a step forward, yes. I wish using those algorithms was as easy as writing LAMP apps

> Usually my battery dies.

Doesn’t mean it has to reboot. It’s just an implementation design of current OSes. See Phantom OS

tonsky··on Software disenchantment
> You can format an SSD, download a multi-gig image and install it in under 6 minutes?

5 minutes to download 4 Gb at 100 Mbit/s, 0,5 min to write 4 Gb at 1Gbps

> I'm failing to see the problem with that dialog. It's hardly new.

It’s always been a problem. Trouble is, you want work from both versions combined, not to select one and destroy another

> Everyone thinks that a problem.

Yet new languages (e.g. Rust) are still developed with terribly slow compilers

> It can kill processes (configurable). But AFAIK it doesn't do it randomly.

Well, I meant randomly in a sense that you can hardly predict or control what will happen. Of course it’s a determenistic algorithm, but engineers treat it as a black box.

> Anymore? Really? I reboot my Windows computer one-tenth as often as twenty years ago.

Why do you need to reboot at all?

tonsky··on Gmail Icons are Hard
Icons still need hover text that needs to be translated
← PreviousPage 3 of 5Next →