codehike icon indicating copy to clipboard operation
codehike copied to clipboard

Wrong dimensions when font loads after measurement

Open pomber opened this issue 3 years ago • 1 comments

useDimensions may run before the code font is loaded. Maybe we should listen to some event and re-run the measurement.

pomber avatar Aug 12 '22 09:08 pomber

Maybe use font-display:block;?

pomber avatar Aug 12 '22 09:08 pomber