[Support request] Own font system stack

Home Forums Support [Support request] Own font system stack

Home Forums Support Own font system stack

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1355630
    Sebastian

    Hi,

    I want to make my own font system stack.

    How can I do that?

    Or is there an easy way to edit the existing system stack?

    Sebastian

    #1355668
    Leo
    Staff
    Customer Support

    Hi there,

    Not quite sure if I understand.

    System stack is the operating system font which depends on the system of the users:
    https://css-tricks.com/snippets/css/system-font-stack/

    #1355697
    Sebastian

    Hi Leo,

    I know.

    To be exactly, I want to change the order of the fonts in the system stack which I can choose in the font list in the customizer.

    or better

    Create another system stack which I can choose in the font list in the customizer.

    #1355789
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can filter the system stack value:

    add_filter( 'generate_typography_system_stack', function() {
        return 'your own system stack here';
    } );

    Hope this helps! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.