Boostnote: Export Fonts when exporting HTML

Created on 12 Dec 2019  路  4Comments  路  Source: BoostIO/Boostnote

Current behavior

When exporting a note to HTML, the CSS is exported, but not any font files.

As a result,

  • Katex fonts are excluded, and disrupt the presentation of Latex
  • Font-Awesome fonts are excluded, disrupting annotations

Below is an example of Latex, missing the Katex fonts:
image

Expected behavior

Below is an example of Latex, with the proper font representation:
image

Steps to reproduce

  1. Create a note with the following as part of the content:
$$[x^n + y^n = z^n]$$
$$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$$
  1. Export the note to an HTML file
  2. Load the newly exported HTML file, and view the Latex

Environment

  • Version : 4.2.12
  • OS Version and name : *, Windows 10/7

Tangentially Related Issues

improvement request

All 4 comments

3127 is also tangentially related as it is missing a font on export.

@Flexo013 I'd like to be assigned this.
I've started working on it, and I'm checking on a few things.

I'll create a PR after the prior one has been merged.

@arcturus140 As an update, I have the Font Export working, but only for fonts originating from the Application. System Fonts are not exported for the HTML.

I cannot get images to export yet, but that was only part of one of the tangent issues.

I got the admonitions working, as that was just another font.

Here's a test.pdf for an example.

this looks great. Maybe we don't need system fonts? it is very common to exclude them for websites or PDF documents. The font is then used if available, an alternative otherwise.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

louiealmeda picture louiealmeda  路  3Comments

croulibri picture croulibri  路  3Comments

Petroochio picture Petroochio  路  3Comments

npeeples picture npeeples  路  3Comments

Ocanamat picture Ocanamat  路  3Comments