Better HN
topnewbestaskshowjobs
Log inSign up

behdad

219 karma · joined Mar 8, 2012 (14y ago) · 60 submissions

Submissions

comment 2mo ago · link · parent

I use it extensively to preserve images and formatting, in the pageless layout. I haven't tested it much with tables. Give it a try and file issues if it doesn't work well and I'll pass on to my agents. Thanks!

comment 2mo ago · link · parent

Good question, isn't it? GDocs has a "publish to web" feature, but it's vastly broken and loses formatting and image sizing and everything. It's just not priority for Google.

comment 2mo ago · link · parent

Possibly. I wasn't determined enough to look into that. Plus, it's easier for me to batch download my documents from the terminal.

Note that it will be a HTML plus directory of images, so you need to return an archive.

4.

Show HN: Gdocs-me-up: a high-fidelity Google Docs exporter(github.com ↗)

23 points · by behdad · 2mo ago · 9 comments

comment 3mo ago · link · parent

Thanks. :)

Yeah this is not the main wedding invitation. There's a proper HTML with details. This is extra me going wild with the agents fun side. If we were to expect people to finish this to get to the RSVP, we'd have exactly two guests!

6.

Show HN: Loft Day – a wedding invitation turned point-and-click game(marketa.behdad.org ↗)

9 points · by behdad · 3mo ago · 6 comments

comment 7mo ago · link · parent

msdf still suffers from detail loss at large sizes, which this method doesn't have.

comment 9mo ago · link · parent

A wave of manic energy in December had me put together a long deck called "HarfBuzz at 20! " , celebrating 20 years of HarfBuzz.

I designed the deck to be presented at the #WebEnginesHackfest later this year. Then reality hit that I cannot present this deck in any sane amount of time.

I decided that instead of tossing the deck out, I just out to be read by the curious. I will present a highly condensed version at the hackfest in June.

Let me know what you think.

9.

HarfBuzz at 20(docs.google.com ↗)

1 points · by behdad · 9mo ago · 1 comment

comment 1y ago · link · parent

I have a puzzle for the hacker in you: The font HarfBust.ttf is an offshoot of Anton Regular, with a twist:

  - On software using HarfBuzz (as far back as you go, back to the 2000s) and HarfBuzz only, it will ligate "HarfBuzz" to the HarfBuzz logo.

  - On software using HarfRust and HarfRust only, it will ligate "HarfRust" to the HarfBuzz logo.

  - On software using HarfBuzz, HarfRust, or DirectWrite, but not CoreText, it will ligate "HarfBust" to the HarfBuzz logo.
How does this work? The font does not use any non-standard OpenType features like `HARF`/`Harf`/`BUZZ`/`Buzz` (which HarfBuzz / HarfRust apply).

Enjoy, --behdad

11.

HarfBust: A font software puzzle for the curious(behdad.github.io ↗)

3 points · by behdad · 1y ago · 1 comment

comment 1y ago · link · parent

Thank you for the question. Rasterization is not my specialty. There definitely is still immense amount of research going into rasterizing fonts and 2D graphics on the GPU efficiently. Here's the latest from Raph Levien's research for example:

  https://www.youtube.com/watch?v=_sv8K190Zps

comment 1y ago · link · parent

We’re the maintainers of HarfBuzz, the open-source text shaping engine used by browsers, operating systems, and applications to render all text, including supporting scripts like Arabic, Devanagari, Khmer, CJK, and more.

HarfBuzz is known for being fast, portable, and complete. But it’s also sometimes seen as hard to understand or work with. We’re working on a Developer FAQ and Design Notes to clear up misconceptions and explain the "why" behind our more unusual design decisions (yes, the macros are intentional).

So we’re asking:

What was your biggest WTF moment reading or using HarfBuzz?

Other things we’d love to hear about:

* Which parts felt like magic or a black box? * What do you think we could explain better? * Have you run into performance or integration surprises? * Are there features you only discovered by reading the source? * What do you wish the documentation had told you?

Anything else you want to know about the project?

We'll answer questions on Reddit, here, and also open a GitHub Discussion afterward to collect and respond to feedback more formally and integrate into our documentation.

Thanks in advance for your curiosity, stories, or frustration—we’re listening!

14.

We maintain HarfBuzz – Ask us anything (or tell us what confused you)(old.reddit.com ↗)

4 points · by behdad · 1y ago · 4 comments

comment 2y ago · link · parent

Browser zoom works fine for me. Does it not for you?

comment 2y ago · link · parent

Hi. As mentioned, I'll expand on my motivations in a future paper. -behdad

17.

State of Text Rendering 2024(behdad.org ↗)

204 points · by behdad · 2y ago · 66 comments

comment 3y ago · link · parent

Like it or not for hiring purposes it does.

comment 3y ago · link · parent

How does that work with new grads?

comment 3y ago · link · parent

Assuming that the dictionary is arbitrary as well, just comparing the string to the strings in the dictionary (or hashing it) it takes O(n), regardless of the data-structure you use.

comment 3y ago · link · parent

That is a correct solution. The one I was talking about would stop after just trying "The" and "reis".

comment 3y ago · link · parent

My bad. The dictionary should be {"the", "there", "is"}.

comment 3y ago · link · parent

Imagine the string "there is", and the dictionary {"the", "there", "is"}.

comment 3y ago · link · parent

I beg to differ, this is exactly the opposite of a manhole problem, which I tried to explain, which I clearly failed.

comment 3y ago · link · parent

My mid-mark would be where someone could write the code for the brute-force answer for both parts but couldn't get the memoize / dynamic-programming solution. That would be where I'd say "I'm not sure, look at other interviews". Otherwise I'll make a hire / no-hire recommendation.

comment 3y ago · link · parent

You'd be surprised.. but we're trying to distinguish between someone who can code simple algorithms versus one who can't.

comment 3y ago · link · parent

Typically candidates are scored on a scale. And there are multiple interviews. The final hire / no-hire is decided based on the scores and written feedback from all interviews.

comment 3y ago · link · parent

It is true that many companies, Google included, have added area-specific questions including some for frontend webdev if I remember correctly.

comment 3y ago · link · parent

As someone who actually uses algorithms and data-structures in their job, I disagree.
12