-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
156 additions
and
36 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
PDTools.Files.Fonts.NVecBuilder/PDTools.Files.Fonts.NVecBuilder.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<Product>nvec_builder</Product> | ||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> | ||
<AssemblyName>nvec_builder</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\PDTools.Files\PDTools.Files.csproj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\Typography\Typography.OpenFont\Typography.OpenFont.projitems" Label="Shared" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using PDTools.Files.Fonts; | ||
|
||
using System; | ||
using System.IO; | ||
|
||
namespace PDTools.Files.Fonts.NVecBuilder | ||
{ | ||
internal class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("NVecBuilder by Nenkai#9075"); | ||
|
||
if (args.Length != 2) | ||
{ | ||
Console.WriteLine("This tool is intended for GT5/6 (older PS3 GTs uses older versions of vector fonts)"); | ||
Console.WriteLine(" Usage: nvec_builder.exe <input_ttf_file> <output_vec_file>"); | ||
return; | ||
} | ||
|
||
Console.WriteLine(); | ||
|
||
if (!File.Exists(args[0])) | ||
{ | ||
Console.WriteLine("Input TTF file does not exist"); | ||
return; | ||
} | ||
|
||
args[1] = Path.GetFullPath(args[1]); | ||
Directory.CreateDirectory(Path.GetDirectoryName(args[1])); | ||
|
||
try | ||
{ | ||
TrueTypeToNVecConverter.Convert(args[0], args[1]); | ||
} | ||
catch (Exception ex) | ||
{ | ||
Console.WriteLine($"Failed to convert: {ex}"); | ||
return; | ||
} | ||
|
||
Console.WriteLine($"TTF -> NVEC -> {args[1]}"); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters