Aspose.Font.Merge 24.9.0

dotnet tool install --global Aspose.Font.Merge --version 24.9.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Aspose.Font.Merge --version 24.9.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Aspose.Font.Merge&version=24.9.0                
nuke :add-package Aspose.Font.Merge --version 24.9.0                

Aspose.Font Micro Apps

Aspose.Font Micro Applications provide high-level APIs for font manipulation, enabling easy integration into .NET applications and facilitating various font processing scenarios.

Learn more about Aspose.Font .NET API.

Aspose.Font Merge Micro Application

This micro application facilitates the merging of multiple fonts into a single font file in various supported formats.

Key Features
  • Supported Input Formats: TTF, WOFF, WOFF2, EOT, Type1 (PFA, PFB), CFF.
  • Supported Output Formats: TTF, WOFF, WOFF2.
Licensing

While the Aspose.Font Merge application is freely available, Aspose.Font .NET requires a valid license for use beyond trial limitations. You can apply your existing license or evaluate the application under the trial mode of Aspose.Font .NET.

System Requirements
  • Requires .NET 6.0/7.0 on Windows, Linux, or MacOS.
  • Aspose.Font Merge application installed.
Installation

The Aspose.Font Merge application can be installed either globally or locally, depending on your project's needs. It is recommended to use the local installation for project-specific use to avoid version conflicts.

Global Installation:

To install Aspose.Font Merge globally on your machine, use the following command:

dotnet tool install --global Aspose.Font.Merge

Specify the --version option if you need a specific version of the tool.

Local Installation:

For local installation within a specific project, first, navigate to your project's root directory. Then, execute the following commands:

  1. Create a tool-manifest if not already present:
dotnet new tool-manifest
  1. Install Aspose.Font Merge locally:
dotnet tool install Aspose.Font.Merge --local

Again, you can specify the --version option for a specific version.

Updating the Tool:

To update the Aspose.Font Merge tool to the latest version, use the dotnet tool update command with either --global or --local, matching your installation type.

Uninstalling the Tool:

If you need to uninstall the tool, use the dotnet tool uninstall command with either --global or --local, depending on how the tool was installed.

Usage

Command Line:

Merge your fonts using command-line arguments. Here are the available parameters:

  • -i, --input [Required]: Paths to the input font files.
    • Example: --input "path/to/font1.ttf" "path/to/font2.ttf"
  • -o, --output [Required]: Path where the merged font will be saved.
    • Example: --output "path/to/output/merged_font.ttf"
  • -f, --format [Optional]: Desired output font format. Supported formats include TTF, WOFF, WOFF2.
    • Example: --format "woff2"
  • -l, --license [Optional]: Path to your Aspose.Font .NET license file. This parameter is optional and only necessary if you have a license to apply.
    • Example: --license "path_to_license.lic"
  • -v, --verbose [Optional]: Enable verbose output for detailed operation logging.
    • Example: --verbose

Example command-line usage:

Aspose.Font.Merge --input input1.ttf input2.ttf --output output.woff2 --format woff2

Use from code:

using Aspose.Font.Merge;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        // Initialize font merge options
        var options = new MergeOptions
        {
            // Required: Specify the input font file paths
            InputPaths = new[] { "input1.ttf", "input2.ttf" },
            
            // Required: Specify the output font file path
            OutputPath = "output.woff2",
            
            // Optional: Specify the output font format
            OutputFormat = "woff2"
        };

        // Conditional: Apply license if you have one
        if (isLicensed)
        {
            options.LicenseFile = "path_to_license.lic";
        }

        // Execute the font merge task
        await MergeTasks.Create(options).Execute();
    }
}
Documentation and Support

Comprehensive documentation is available on the Aspose.Font Documentation page. For questions, support, or feedback, please visit Aspose Forums.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
24.9.0 118 9/27/2024