fix(draw): revert to Arial as default font

This partially reverts commit 891cf4ac0c
which set `sans-serif` as the default font.

Setting it back to Arial solves SVG export and rendering issues,
especially on platforms (Windows, Mac) where the default font
metrics differ highly from Arial.

NOTE: The font can still be easily overriden if integrators wish
to do so in order to give their users a more native look and feel.

Closes #819
This commit is contained in:
Nico Rehwaldt 2018-06-28 09:47:22 +02:00 committed by Philipp Fromme
parent 75c0880341
commit cec9d08d61
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ var MIN_TEXT_ANNOTATION_HEIGHT = 30;
export default function TextRenderer(config) {
var defaultStyle = assign({
fontFamily: 'sans-serif',
fontFamily: 'Arial, sans-serif',
fontSize: DEFAULT_FONT_SIZE,
fontWeight: 'normal',
lineHeight: LINE_HEIGHT_RATIO