Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When configuring an object of type text in layers.js, I see that I can set fontFamily, and fontSrc.

However, it seems like there are not equivalent fontStyle and fontWeight properties.

Is there a way I can set font weight for a text object ala css font-weight? I’m hoping to be able to use the black weight of our primary font, but without that property I’m not sure how I would do it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

chrishutchinsoncommented, Dec 12, 2016

Even better, found half an hour to do it now - currently done as PR #71, I’ll have this reviewed and pushed under a new CardKit version tomorrow!

Kirkmancommented, Dec 18, 2016

And I also realized it would be nice to have a slider control to allow our users here to adjust font-weight. So here’s another pull request for that:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fundamental text and font styling - Learn web development
In this article we'll start you on your journey towards mastering text styling with CSS. Here we'll go through all the basic fundamentals...
Read more >
CSS Text - W3Schools
This text is styled with some of the text formatting properties. The heading uses the text-align, text-transform, and color properties.
Read more >
Stylish Text Generator (𝓬𝓸𝓹𝔂 𝒶𝓃𝒹 𝓹𝓪𝓼𝓽𝓮 ♥)
This is an online stylish text generator. You can generate stylish text by putting your regular text in the first box and then...
Read more >
Basic CSS: Text Styling in CSS - GCFGlobal
Learn how to use CSS to style the text on a webpage by changing its size, font, boldness, and alignment.
Read more >
YayText: A text styling tool for Facebook, Twitter, etc.
Generate a variety of cool unicode font styles that you can copy and paste into Facebook, Twitter, etc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found