In my current project, I am utilizing the popular 'Open Sans' font family. However, I am encountering a specific issue.
The problem arises with buttons and other elements that have width: auto
. Upon page load, these elements initially have their width calculated by the browser. Once the 'Open Sans' font is fetched from Google Fonts, their size is readjusted, resulting in an unpleasant visual effect.
You can see a live demonstration of this issue here: http://jsbin.com/IkifUhUL/1 (try refreshing the page multiple times to witness it).
I am curious if there is any workaround for this dilemma without having to specify a fixed width for these elements?
Any insights or advice would be greatly appreciated!