Applying font not working if font size is having decimals

Posted by: datta on 30 July 2019, 5:34 am EST

    • Post Options:
    • Link

    Posted 30 July 2019, 5:34 am EST

    Hi,

    When I invoke range.font() api with decimal font size it is not working. I am reading font of range object using range.font() which is giving me a string “14.666px calibri”. To this string I am prepending ‘bold’ and passing it to font(). So it will be range.font(“bold 14.666px calibri”). This one will not apply bold on cells . However if I do range.font(“bold 14px calibri”) it works. Is this an issue?

  • Posted 31 July 2019, 6:06 am EST

    Hi,

    We are sorry but we are unable to replicate the issue at our end. Following is the sample we used for testing purpose, please have a look at it and let us know if we are missing something in order to replicate the issue:

    https://codesandbox.io/s/spread-js-starter-3hhel

    Also, please let us know the spread version, browser, OS you are testing on, so that we may test on the same environment once.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels