Skip to content

Typography "all_styles" parameter doesn't import all (Google) font weights #1444

@aonzzung

Description

@aonzzung

Hi there,

First, thanks for amazing theme option framework.
It's the best I have ever used. ;)

I'm having problem with "all_styles" parameter which doesn't import all font weights.
Here is my array

// Redux version : 3.3.3.5
array(
                        'id'        => 'berry-typography-body-font',
                        'type'      => 'typography',
                        'title'     => __('Global Body Font', 'tymberry-theme-options'),
                        'subtitle'  => __('Specify the body font for using globally through our the whole theme.', 'tymberry-theme-options'),
                        'google'    => true,
                        'all_styles'=> true, // import all google font weights
                        'text-align'=>false,
                        'font-weight' => false,
                        'font-style' => false,
                        'font-size' => false,
                        'line-height' => false,
                        'color' => false,
                        'default'   => array(
                            'font-family'   => 'Raleway, sans-serif'
                        ),
                    ),

Here is the output

Raleway has many font weights here :100,200,300,400,500,600,700,800,900
But the script import only 400.

Could you please help check?

Thanks in advance ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions