Forum Discussion

JaileneW's avatar
JaileneW
Frequent Visitor
6 years ago
Solved

How to import customized fonts (Regular, Bold, Semibold, light etc.)

Hi Team, I am trying to import customized font family to my report theme, and want to make it Bold, Medium, Regular.  I tried to add "FontWeight":"Bold" or "Fontweight": "Regular" in JSON file, but...
  • dm-p's avatar
    dm-p
    6 years ago

    Hi JaileneW,

    My original line of thinking was that if you had a font in your system named with a heavier weight, then this would work, but upon testing further, I'm finding it very hard to find some good candidates for you. Even checking through my list of installed fonts has very mixed results.

    For example, I can get Wide Latin to work, e.g.:

    ...and Franklin Gothic Heavy:

    But for many others it seems to be a case of trial and error, which is why I generally stay with the prescribed list.

    Of note, you can specify fallback fonts, by specifying another one afterwards with a comma, e.g.:

    "fontFamily": "Roboto, Segoe UI"

    In this case, I don't have Roboto on my system, and it will display Segoe UI instead rather than Times New Roman.

    I appreciate that this doesn't really 100% solve your problem but might give you some ideas. Font support is still somewhat lacking.

    Regards,

    Daniel