Forum Discussion
Fontsize error on IE but correct on Chrome
- 7 years ago
Hi Anonymous,
It might be that you are not specifying the CSS unit for the font-size. If you're using a fontSize type for your object in capabilities.json, these would need to be in pt. It's likely that IE has different behaviour to Chrome when just a number is supplied as the font size.
Try replacing this:
{ key: 'font-size', value: `${MainValue_FontSize}` }With this:
{ key: 'font-size', value: `${MainValue_FontSize}pt` }That might be all you need.
Good luck!
Daniel
Hi Anonymous,
It might be that you are not specifying the CSS unit for the font-size. If you're using a fontSize type for your object in capabilities.json, these would need to be in pt. It's likely that IE has different behaviour to Chrome when just a number is supplied as the font size.
Try replacing this:
{
key: 'font-size',
value: `${MainValue_FontSize}`
}With this:
{
key: 'font-size',
value: `${MainValue_FontSize}pt`
}That might be all you need.
Good luck!
Daniel
dm-p Thanks! That solved the problem.