Giter Site home page Giter Site logo

Font - Default Font Family about revery HOT 4 CLOSED

revery-ui avatar revery-ui commented on April 30, 2024 1
Font - Default Font Family

from revery.

Comments (4)

glennsl avatar glennsl commented on April 30, 2024 1

Fixed by #879

from revery.

jchavarri avatar jchavarri commented on April 30, 2024

My only suggestion would be around payload size in the jsoo builds, in order to try to keep the web bundles small in the future. We could pick a custom font with a small subset of glyphs, or even better, choose a font that is available in browsers by default. In the last case, we could make it so reason-fontkit doesn't even try to load anything because it knows that font is already provided by the browser 🤔

from revery.

jchavarri avatar jchavarri commented on April 30, 2024

Maybe related: https://parall.ax/blog/view/3072/tutorial-reducing-the-file-size-of-custom-web-fonts

from revery.

baransu avatar baransu commented on April 30, 2024

More up to date error when no fontFamily is provided in Text style:

Fatal error: exception (Invalid_argument "\"\": invalid path")
Raised at file "stdlib.ml", line 30, characters 20-45
Called from file "src/Path.re", line 20, characters 14-26
Called from file "src/Core/Environment.re", line 87, characters 6-30
Called from file "src/Font/FontCache.re", line 29, characters 22-56
Called from file "src/Draw/Text.re", line 10, characters 9-37
Called from file "src/Draw/Text.re" (inlined), line 18, characters 16-59
Called from file "src/UI/TextNode.re", line 145, characters 20-66
Called from file "src/lib/LayoutSupport.re", line 1303, characters 10-85
Called from file "src/lib/Layout.re", line 281, characters 6-192
Called from file "src/lib/Layout.re", line 456, characters 8-264
Called from file "src/lib/Layout.re", line 759, characters 17-684
Called from file "src/lib/Layout.re", line 281, characters 6-192
Called from file "src/lib/Layout.re", line 456, characters 8-264
Called from file "src/lib/Layout.re", line 759, characters 17-684
Called from file "src/lib/Layout.re", line 281, characters 6-192
Called from file "src/lib/Layout.re", line 557, characters 6-198
Called from file "src/lib/Layout.re", line 1554, characters 12-205
Called from file "src/lib/Layout.re", line 281, characters 6-192
Called from file "src/lib/Layout.re", line 1613, characters 7-213
Called from file "src/UI/Render.re", line 51, characters 2-45
Called from file "src/Core/Window.re", line 293, characters 2-12
Called from file "list.ml", line 110, characters 12-15
Called from file "src/Core/App.re", line 226, characters 6-123
Called from file "src/sdl2.re", line 587, characters 10-20

from revery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.