Code Monkey home page Code Monkey logo

Comments (5)

w00fz avatar w00fz commented on July 30, 2024

Like said in #10 we are planning to add support in hydrogen for the font picker. It didn't make it through beta1.
Your implementation is almost right but you are missing a few bits. Because it's remote you need the url() and because it's Google fonts you need the pretending google fonts url

from gantry5.

w00fz avatar w00fz commented on July 30, 2024

Sorry phone submitted before I was done :)
url(http://fonts.googleapis.com/css?$header-font)

Something along those lines.

from gantry5.

DamirPecnik avatar DamirPecnik commented on July 30, 2024

Thanks for the input.

from gantry5.

w00fz avatar w00fz commented on July 30, 2024

We discussed the font picker and know it isn't completed but I think we have a good plan now.
In short, we are going to add support for local fonts as well as google fonts so the font picker field itself could be populated similar to the way you write it in CSS.

As font stack: "Helvetica", "Times New Roman", sans-serif
As google: family=Ubuntu...
As single font: Helvetica

You will be able to define local fonts from the theme.yaml in a key value definition that sort of looks like roboto: 'gantry-theme://fonts/roboto_regular_macroman/Roboto-Regular-webfont' and if you wanted to use it you would just reference roboto in the field.

This is the plan, it's going to take a bit of time to get it all together but at least you get the idea :)

from gantry5.

DamirPecnik avatar DamirPecnik commented on July 30, 2024

Awesome!

from gantry5.

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.