import { FC } from 'react';
import { Mono } from './StyledText';
export const Description: FC = () => (
Precise Horizontal Text Control Using use-font-metrics
Below you can see a pair of Lorem Ipsum boxes for each font. The
first is the default browser render, the second uses font metrics to
tighten the box around the text.
-
Note how the default render will add horizontal gaps around the text.
This is the distance, defined per glyph, you must advance before placing
the next glyph.
-
The second box shows the text styled with the return value of{' '}
useTextBoxMetrics - the box fits as tight as possible.
);