Skip to content

Commit

Permalink
doc: clarify that the default value of the defaultFontFamily is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Jan 15, 2024
1 parent 06dd2c0 commit 7cd8739
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

export type ResvgRenderOptions = {
font?: {
loadSystemFonts?: boolean // Default: true. if set to false, it will be faster.
loadSystemFonts?: boolean // Default: true, if set to false, it will be faster.
fontFiles?: string[] // A list of local font file paths to load.
fontDirs?: string[] // A list of local font directories to load.
defaultFontSize?: number // Default: 12
defaultFontFamily?: string
defaultFontFamily?: string // Default: "", if `loadSystemFonts` is enabled, it will be set to the first font in the list of system fonts.
serifFamily?: string
sansSerifFamily?: string
cursiveFamily?: string
Expand Down
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub struct JsFontOptions {
///
/// Will be used when no `font-family` attribute is set in the SVG.
///
/// Default: Times New Roman
/// Default: ""
pub default_font_family: String,

/// The default font size.
Expand Down

1 comment on commit 7cd8739

@vercel
Copy link

@vercel vercel bot commented on 7cd8739 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

resvg-js – ./

resvg-js-git-main-yisibl.vercel.app
resvg-js-yisibl.vercel.app
resvg-js.vercel.app

Please sign in to comment.