Skip to content

Use a more efficient way to load custom fonts into the web application #1940

Open
@kittaakos

Description

@kittaakos

Describe the request

Custom fonts, such as Open Sans, should be prefetched as it causes performance issues and is noticeable:

@font-face {
font-family: 'Open Sans';
src: url('fonts/OpenSans-Bold-webfont.woff') format('woff');
}

Describe the current behavior

IDE2 loads the fonts on the fly, which causes a UI glitch:

Screen Shot 2023-03-07 at 12 56 55

Loading:
Screen Shot 2023-03-07 at 11 18 05

Loaded:
Screen Shot 2023-03-07 at 11 18 10

In action:

font-load.mp4

Related: #1217 (comment)

Arduino IDE version

2.0.4

Operating system

macOS

Operating system version

12.6.3

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions