--- source: https://www.jointjs.com/demos/dynamic-font-size github: https://raw.githubusercontent.com/clientIO/joint-demos/main/dynamic-font-size/README.md generated: 2026-03-22 format: plaintext --- JointJS: Dynamic Font Size Do you need font-size to be dynamic, and adjust according to another factor such as element height? The following demo shows you how to achieve that. Taking advantage of the calc() function, users can easily adjust font-size of an element according to its height. This demo is also available online at jointjs.com. Available Versions JavaScript Screenshot !screenshot