Code Monkey home page Code Monkey logo

Comments (6)

Lorp avatar Lorp commented on June 2, 2024 1

I’ll think about it. I don’t want the default installation to have any expectation that the Google Fonts are there. One solution would be an additional script that populates samsa-config.js, and users run this if they wish. I’d have to reimplement a dropdown control for an infinite loader, as there’s no event fired when navigating <select> controls… perhaps a “load more” entry would work, but I don’t want a very long list or lots of clicks on “load more”.

Good to hear you’re building a Figma plugin.

from samsa.

Lorp avatar Lorp commented on June 2, 2024

Do you mean upload your own fonts so that they stay in the list? There is no actual “uploading” in Samsa; drag-drop parses the font file in memory.

The way you get Samsa’s menu to show a custom set of fonts is to install Samsa locally, and edit samsa-config.js to point to (or base64-embed) your fonts.

Regarding Google fonts, I could write a script to add their latest VFs. I don’t want to overwhelm the menu (with ~120 font files) or commit to adding all those fonts to the repo, but maybe there is a better approach. It would be good to have quick access to them.

from samsa.

crypto-dump avatar crypto-dump commented on June 2, 2024

Cool. It would be really helpful if samsa supports the google vf fonts.
I also think we don't need to add them to menu or upload them to repo.

Thank you for your reply.

from samsa.

crypto-dump avatar crypto-dump commented on June 2, 2024

Can't sure if this can help you.

https://github.com/RoelN/google-variable-fonts-links

from samsa.

Lorp avatar Lorp commented on June 2, 2024

Good point, I should have mentioned Roel’s tool. If you can come up with a UI concept, it would help me consider this further.

If the GF fonts are not in the menu, how would they be accessed? Using JavaScript’s fetch() API, one only has access to files stored on the same domain as the app.

Perhaps the GF repo should be included in the Samsa repo as a submodule.

from samsa.

crypto-dump avatar crypto-dump commented on June 2, 2024

Actually, I was building variable fonts plugin for figma. and I thought we can show all google fonts to the menu for this plugin.
On samsa, I think we can use infinite loader for the long google font list.

from samsa.

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.