Home
Products
Downloads
Support
Buy
Font sizes are not displaying correctly
Product Name: PanelBar for ASP.NET
Product Version: 7.0
Document Type: Problem
Last Updated: 9/5/2016
Document ID: 34
Symptoms
Setting the font.Size property does not result in the expected change to the rendered font size.

Cause
The most typical cause of this problem is that the font.Size property value is passed into the HTML page as a string for the StyleSheet font-size property. The StyleSheet value for font-size requires a specifier which determines what unit of measure to use ("pt", "em" or "px").

Resolution/Workaround

Set the font.Size property using the desired unit of measure:

Points: 10pt

EMS: 12em

Pixels: 10px

Copyright © 2024 Coalesys, Inc. All Rights Reserved.