You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Embed Fonts in SVG Assets
2
2
===
3
3
4
-
SVG is useful for device-independent sizing, but can often be a pain because fonts must be embedded in the file to render properly in most browsers. `svg-embed-font` is a command line tool to easily determine what fonts are used in an SVG file and encode them as Base64 assets directly in the file.
4
+
SVG is useful for device-independent resolution, but can often be a pain because fonts must be embedded in the file to render properly across all browsers. `svg-embed-font` is a command line tool to easily determine what fonts are used in an SVG file and encode them as Base64 assets within it.
5
5
6
6
If your SVG assets look great on your computer and messed up on everyone else's, it's because the fonts aren't embedded properly in the file.
7
7
@@ -11,7 +11,7 @@ If your SVG assets look great on your computer and messed up on everyone else's,
11
11
svg-embed-font input.svg
12
12
```
13
13
14
-
In the default mode, the tool will scan the SVG file for all font-family declarations then attempt to locate matching font files (any font file format). Matches are defined as a substring match for the font family name. So if you declare:
14
+
In the default mode, the tool will scan the SVG file for all font-family declarations then attempt to locate matching font files (any font file format). Matches are defined as a case-insensitive substring match for the font family name ignoring any spaces. So if you declare:
15
15
16
16
```
17
17
font-family: 'Permanent Marker'
@@ -21,7 +21,7 @@ permanentmarker.ttf
21
21
PermanentMarker-700.otf
22
22
```
23
23
24
-
In this case, there are two possible matches, which can often happen when a font comes in multiple weights. To specify which should be used, list the font on the command line after the input file.
24
+
In this case, there are two possible matches, which can often happen when a font comes in multiple weights. To specify which should be used, list the font on the command line after the input file. Multiple possible matches must be resolved by listing the correct one on the command line.
25
25
26
26
```
27
27
svg-embed-font input.svg permanentmarker.ttf
@@ -31,11 +31,11 @@ One or more preferred font files can be listed on the command line and it will u
31
31
32
32
### Font File Path Search
33
33
34
-
If you don't specify the exact font files, it will look in the current directory and all subdirectories for a match, so you can lay out our files in a logical hierarchy and it will find them. If it exhausts all possible files without finding a match to every font in the SVG file, it will return an error.
34
+
If you don't specify the exact font files, it will look in the current directory and all subdirectories for a match, so you can lay out your files in a logical hierarchy and it will find them. If it exhausts all possible files without finding a match to every font in the SVG file, it will return an error.
35
35
36
36
### Installation
37
37
38
-
Download the release appropriate for your operating system on the releases page.
38
+
Download the release appropriate for your operating system on the [releases page](https://github.com/BTBurke/svg-embed-font/releases).
0 commit comments