flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.33k stars 292 forks source link

Bundle a Handwrite-y Font #662

Closed maymage closed 1 year ago

maymage commented 1 year ago

Hi all,

my understanding is, that the text fonts, that I can choose from here

grafik

are those from my system - correct me, if I am wrong.

If so, I do lack a nice looking handwrite-y font, that blends in well with the idea of a note taking app; like in may case, I'd imagine that many people don't really know how to install an additional font, or if they could learn, are too lazy for it.

Therefore, in order to improve the default experience, I would suggest to

Personally I like the Virgil font that's used by Excalidraw. Tldraw uses Shantellsans.

maymage commented 1 year ago

Just for fun: Cantarell vs Virgil

grafik

maymage commented 1 year ago

Just to show off..

grafik

flxzt commented 1 year ago

I like it! it would complement the handwriting very well. I'll see if we can include this in the next release

flxzt commented 1 year ago

@dehesselle what would be the best way to bundle a font on MacOS, or do you know how Inkscape will do it in v1.3? Unfortunately I could not find a good way to load in a custom font programmatically, so I think we have to install it to the system on all platforms.

dehesselle commented 1 year ago

I think I'll add it to the application bundle and add the path so that fontconfig finds it. I'll need to run some tests to confirm.

dehesselle commented 1 year ago

I've figured it out. (And I noticed "I've done this before" somewhere 😆.) It's an easy setting, doesn't involve fontconfig. I can move forward anytime, I just need to know which font to bundle.

dehesselle commented 1 year ago

One more thing: this feature has an impact on export formats like PDF. The font needs to be embedded during export, otherwise Rnote will create PDFs that don't look like the original drawing.

flxzt commented 1 year ago

Currently the text is converted into paths for all vectorized exports during the simplification step (not ideal, I know), so it shouldn't be an issue. But this should definitely be kept in mind for the future.

flxzt commented 1 year ago

Here's a small comparison between different open handwrite-y fonts. Open for discussion which ones should be included (the last one is a typewriter font, but it is fun and could be added as well in my opinion):

handwrite-y fonts comparison

maymage commented 1 year ago

Personally, for aesthetic and readability reasons

Virgil ~ ShantellSans > Gloriah Hallelujah > Grape Nuts

Is there are reason, we have to choose? Depending on personal handwriting, one may have a preference for one specific font over another, so a few distinct, yet lightweight fonts may be desirable.

flxzt commented 1 year ago

No, it is possible to bundle multiple fonts. I want to cover a variety of handwriting styles, in the PR right now Virgil and Grape Nuts is bundled. I personally like Gloriah Hallelujah, but it has a really large line height for some reason and ShantellSans style is almost too little handwrite-y in my opinion.

I am also open to bundling alternatives/other (open) fonts if there are other suggestions.