https://github.com/calloc134/font-export
Windows Font Exporter
https://github.com/calloc134/font-export
font windows
Last synced: 2 months ago
JSON representation
Windows Font Exporter
- Host: GitHub
- URL: https://github.com/calloc134/font-export
- Owner: calloc134
- Created: 2025-04-01T07:28:50.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-02T05:11:53.000Z (2 months ago)
- Last Synced: 2025-04-02T05:28:34.461Z (2 months ago)
- Topics: font, windows
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Font Exporter
This project extracts font data from system fonts on Windows using Rust and the Windows API.
## Setup and Usage
1. **Download the Release:**
Visit the [Releases](https://github.com/calloc134/font-export/releases) page and download the appropriate binary (`font-export.exe`) for your Windows system.2. **Run the Program:**
Open a command prompt or PowerShell in the directory where you saved the downloaded executable. Execute the program using command-line arguments, primarily using the short options:- **`-f ` (Required):** Specify the name of the font installed on your system that you want to extract (e.g., "Arial", "Times New Roman", "Meiryo UI"). **This argument is mandatory.** (Long form: `--font-name`)
- **`-o ` (Optional):** Specify the directory where the extracted font file should be saved. The output file name will be the same as the specified ``. **If omitted, the font file will be saved in the current directory (`.`).** (Long form: `--output-dir`)**Examples:**
- **Extract "Arial" font to the current directory (using mandatory `-f`):**
```bash
.\font-export.exe -f "Arial"
```(This will create a file named `Arial` in the current directory.)
- **Extract "Times New Roman" font to a specific directory (e.g., `C:\MyFonts`) using short options:**
```bash
.\font-export.exe -f "Times New Roman" -o "C:\MyFonts"
```(This will create the directory `C:\MyFonts` if it doesn't exist, and save the font as `C:\MyFonts\Times New Roman`.)
- **Extract "Meiryo UI" font to a subdirectory named `output` relative to the current location:**
```bash
.\font-export.exe -f "Meiryo UI" -o .\output
```
(This will create `./output/Meiryo UI`.)3. **Get Help:**
To see all available options (including both short and long forms) and their descriptions, run the program with the `-h` or `--help` flag:
```bash
.\font-export.exe -h
```