Font files are kinda whack

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 24

  • @sphaerophoria
    @sphaerophoria  3 дні тому +15

    me: please tell me how to parse your file format
    also me: k but don't use words to do it

    • @andrewdunbar828
      @andrewdunbar828 3 дні тому

      If you need words any old LLM can do that.

    • @vikenemesh
      @vikenemesh 3 дні тому

      I too would like to be able to beam abstract concepts directly into my brain, I get what you mean... Slogging through all the words is THE #1 pain for me.

  • @PaulKukowski
    @PaulKukowski 2 дні тому

    You implement specs just like I do - by passive-aggressively ignoring them.
    But jokes aside, I love your channel and the projects you do. Keep up the good work!

  • @LuizMoraes-xb7qj
    @LuizMoraes-xb7qj 3 дні тому +22

    Fonts are one of those things that you go like: "ahit is just some text in a screen that is probably easy as fuck, we discovered how to do this like in the 90s" and then you regret everything you said

    • @andrewdunbar828
      @andrewdunbar828 3 дні тому

      Well they discovered how to do that in the '70s (output was to printers before then). The crazy shit started to appear at the start of the '90s but most people ignored most of it until... emoji!

    • @io-mi
      @io-mi 3 дні тому +1

      The impossible task, at least for me, has been achieving subpixel-perfect rendering through hinting. There are so many subpixel layouts, and while standards like EDID (DDDB) exist to access the layout, not all manufacturers include them. This makes it nearly infeasible to support every layout unless the user manually specifies the subpixel geometry or uses grayscale antialiasing.

  • @digitulized459
    @digitulized459 3 дні тому +1

    off topic but just wanna say I love having your videos on as background noise for while I program, they are oddly very motivational lol

  • @JadenAllen
    @JadenAllen 3 дні тому

    Sebastion lague made a video on this a little bit ago, it was a very interesting topic. Never realized how much goes into the rendering of fonts

  • @sknown
    @sknown 3 дні тому +6

    zig's reader has functions to read values with a given endianness instead of doing bigToNative

    • @sphaerophoria
      @sphaerophoria  3 дні тому +7

      Oh reader.readStructEndian does seem a lot like what I want

  • @andrewdunbar828
    @andrewdunbar828 3 дні тому +3

    By coincidence I just found a project somebody made that implements a disassembler for an 8-bit CPU as a font using all these crazy font rules!

    • @sphaerophoria
      @sphaerophoria  3 дні тому +3

      That sounds pretty sick, I've seen another one where a guy bakes an LLM into one

  • @andrwondabeat
    @andrwondabeat 3 дні тому +1

    i swear to god font files are a mess. ttf, otf, woff, and woff2, all of them are a pain in the ass.
    i'm working on a font manager, and trying to get all data from the font files is just painful.

  • @TheBackyardChemist
    @TheBackyardChemist 3 дні тому +2

    here is a "fun" fact: the PDF standard has still not been updated with support for continously variable fonts, and a bunch of those have been shipping with Windows/Office since like 2018...
    I found out the hard way myself, also there is a bug in Adobe Acrobat (a bug in Adobe software? shocking, I know...) where PDFs with custom fonts embedded as vector graphics are not rendered correctly (which is the only workaround for the standard not getting updated).

  • @Dje4321
    @Dje4321 3 дні тому +3

    Also "Ubuntu" font supremacy.

  • @aredrih6723
    @aredrih6723 3 дні тому +3

    2:02:00 unless I'm missing something that was a difference of 100, not 0. Another victim of doing live math.
    Weird for "A" to be so far out but it also is in the glyph table somehow.

    • @sphaerophoria
      @sphaerophoria  3 дні тому +1

      Oh my god you're right. I've been double checking my work and keep getting that exact same value with different methods, so it seems likely to be correct. I just thought it was wrong because I thought 100 == 0
      Thank you for the shout

  • @Dje4321
    @Dje4321 3 дні тому +3

    As someone who watched a dense 2 hour documentary on how font rendering works. I wish you luck, it fucking sucks lol

    • @creator-link
      @creator-link 3 дні тому +1

      You got the name of the doc, sounds interesting

    • @aspzx
      @aspzx 3 дні тому +1

      Could be Sebastian Lague's video on Rendering Text. It's a great video. It could be called "edge cases: the movie".

    • @creator-link
      @creator-link 3 дні тому +1

      @@aspzx ahh yeah watched that one before, really enjoyed it

  • @thefloatingrock
    @thefloatingrock 3 дні тому

    First