Skip to content

Commit

Permalink
fix: bad music font selection when not defined by 'url(..)'
Browse files Browse the repository at this point in the history
Issue #56.
  • Loading branch information
moinejf committed Aug 9, 2019
1 parent c889233 commit a41de54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,11 +1151,11 @@ static void define_head(float w, float h)
".stroke {stroke: currentColor; fill: none}\n"
"text{white-space: pre}\n";
static const char svg_font_style[] =
".music {font:24px music;\n"
".music {font:24px %s;\n"
" fill: currentColor}\n";
static const char svg_font_style_url[] =
"@font-face {\n"
" font-family:\"music\";\n"
" font-family:music;\n"
" src:%s}\n"
".music {font:24px music;\n"
" fill: currentColor}\n";
Expand All @@ -1168,7 +1168,7 @@ static void define_head(float w, float h)
if (strchr(cfmt.musicfont, '('))
fprintf(fout, svg_font_style_url, cfmt.musicfont);
else
fprintf(fout, svg_font_style);
fprintf(fout, svg_font_style, cfmt.musicfont);
}
fputs(svg_head2, fout);
}
Expand Down

0 comments on commit a41de54

Please sign in to comment.