Skip to content

Commit

Permalink
Change folder where open type fonts are looked for
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Apr 16, 2024
1 parent 75793d6 commit e6db885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/API/ApiMethods.DrawStrokes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public static void Text(string text)

[ApiEndpoint(
"draw.opentypetext",
"Same as draw text but uses an opentype font (the path can be anywhere in your Open Brush Media Library)",
"hello world,Fonts/Roboto-Regular.ttf"
"Same as draw text but uses an opentype font (the font should be in a Fonts folder in your Open Brush folder)",
"hello world,hello world,calibri.ttf"
)]
public static void OpenTypeText(string text, string fontPath)
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/API/SvgTextUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static string GenerateSvgOutlineForText(string text, string fontPath)
{
Color color = Color.white;

fontPath = Path.Combine(App.MediaLibraryPath(), fontPath);
fontPath = Path.Combine(App.UserPath(), "Fonts", fontPath);

float unit = 1f;

Expand Down

0 comments on commit e6db885

Please sign in to comment.