Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with font size #168

Closed
zheyuye opened this issue Jul 13, 2019 · 1 comment
Closed

Issue with font size #168

zheyuye opened this issue Jul 13, 2019 · 1 comment
Labels

Comments

@zheyuye
Copy link

zheyuye commented Jul 13, 2019

have no responses with font-size as well as font-weight in labels

@mason
Copy link

mason commented Jan 31, 2021

font: {
        // Font family of text, inherits from global
        family: "sans-serif",
        
        // Font size of text, inherits from global
        size: 12,
        
        // Font style of text, default below
        style: "bold",
}

should be not nested

label: {

                            // Background color of label, default below
                            backgroundColor: 'rgba(0,0,0,0.8)',

                            // optional drawTime to control labels' layering; defaults to this element's drawTime
                            drawTime: 'afterDatasetsDraw',

                            // Font family of text, inherits from global
                            fontFamily: "sans-serif",

                            // Font size of text, inherits from global
                            fontSize: 20,

                            // Font style of text, default below
                            fontStyle: "bold",

                            // Font color of text, default below
                            fontColor: "#fff",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants