question-mark
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.

Support for 'bold' namespace in fonts

See original GitHub issue

Describe the feature

Support for bold namespace in the fonts namespace of the theme

Motivation

The reasons is getting closer to what material design showcases as ‘common weights’ in here https://material.io/design/typography/understanding-typography.html

Related Issues

No related issues

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
satya164commented, Nov 5, 2019

You can put any additional stuff in the theme. I don’t think it makes sense for us to add a bold to the default theme when we don’t use it.

1reaction
joebochillcommented, Jan 10, 2022

I see the same thing if I try to use the DefaultTheme from RNP. When you override the type definition for the Theme, technically the one provided by RNP no longer matches. You’ll have to either 1) not use the default theme or 2) throw a @ts-ignore on it and make sure you have fallbacks wherever they are needed.

We managed to get our library to work with our custom theme (that includes a bold font and some additional color values) and the default theme by adding fallbacks to a default theme property anywhere that we used one of our custom additions, e.g.:

fontFamily: theme.fonts.bold ? theme.fonts.bold.fontFamily : theme.fonts.medium.fontFamily
Read more comments on GitHub >

github_iconTop Results From Across the Web

Font.Bold Property (System.Drawing) - Microsoft Learn
Gets a value that indicates whether this Font is bold. ... Namespace: System.Drawing ... Font.Bold)) { this.Font = new Font(this.Font, FontStyle.Bold); } }...
Read more >
font-weight - CSS: Cascading Style Sheets - MDN Web Docs
The font-weight CSS property sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set....
Read more >
Namespace SixLabors.Fonts
FontMetrics. Represents a font face with metrics, which is a set of glyphs with a specific style (regular, italic, bold etc).
Read more >
C# Font Examples - Dot Net Perls
Drawing namespace is required. Shows a font. Some notes. We use the reference returned by the Font constructor to specify typefaces in Windows ......
Read more >
Add a font as an XML resource - Android Developers
The Support Library 26.0 supports fonts in XML on devices running Android 4.1 (API level 16) and higher. Note: When you declare font...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found