{"id":23926379,"url":"https://github.com/nstechbytes/exportfonts","last_synced_at":"2025-02-24T00:26:54.869Z","repository":{"id":269920815,"uuid":"908859021","full_name":"NSTechBytes/ExportFonts","owner":"NSTechBytes","description":"ExportFonts is a utility for installing fonts on Windows systems, updating configuration files, and managing font installations with administrator privileges. It can also restart Rainmeter after updating font-related settings.","archived":false,"fork":false,"pushed_at":"2024-12-27T06:41:16.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T21:14:14.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nstechbytes.github.io/Nasir-Shahbaz/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSTechBytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-27T06:24:02.000Z","updated_at":"2024-12-27T06:41:19.000Z","dependencies_parsed_at":"2024-12-27T07:34:30.342Z","dependency_job_id":null,"html_url":"https://github.com/NSTechBytes/ExportFonts","commit_stats":null,"previous_names":["nstechbytes/exportfonts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FExportFonts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FExportFonts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FExportFonts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FExportFonts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSTechBytes","download_url":"https://codeload.github.com/NSTechBytes/ExportFonts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240398916,"owners_count":19795180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-05T21:14:16.109Z","updated_at":"2025-02-24T00:26:54.826Z","avatar_url":"https://github.com/NSTechBytes.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExportFonts\n\nExportFonts is a utility for installing fonts on Windows systems, updating configuration files, and managing font installations with administrator privileges. It can also restart Rainmeter after updating font-related settings.\n\n## Features\n\n- Automatically installs `.ttf` and `.otf` font files from a specified directory.\n- Updates a variables configuration file (`Installed_Fonts=1`) to reflect changes.\n- Restarts Rainmeter to apply font changes seamlessly.\n- Handles font installation with proper registry updates and broadcasts font changes to the system.\n\n## Prerequisites\n\n- Windows operating system.\n- .NET Framework or .NET Core runtime compatible with the project.\n- Administrator privileges to run the application.\n\n## Usage\n\n### Command Line Arguments\n\nThe program requires three arguments to run:\n\n```plaintext\nExportFonts.exe \u003cpath-to-font-folder\u003e \u003cpath-to-variables-file\u003e\n```\n\n1. `\u003cpath-to-font-folder\u003e`: The directory containing the font files to be installed.\n2. `\u003cpath-to-variables-file\u003e`: The path to the file where the `Installed_Fonts` variable is updated.\n\n### Example\n\n```bash\nExportFonts.exe \"C:\\Fonts\" \"C:\\Rainmeter\\variables.ini\"\n```\n\n### Output\n\n- Fonts from the specified folder are installed to the system.\n- The variables file is updated with `Installed_Fonts=1`.\n- Rainmeter is restarted to apply the font updates.\n\n## How It Works\n\n1. **Administrator Check**: Ensures the program is running with administrator privileges. If not, it relaunches itself with elevated privileges.\n2. **Font Installation**: Copies fonts to the system's font directory and updates the Windows Registry.\n3. **Configuration Update**: Modifies the provided variables file to indicate successful font installation.\n4. **Rainmeter Restart**: Terminates and relaunches Rainmeter to reflect changes.\n\n## Error Handling\n\n- **Missing Administrator Privileges**: The program automatically relaunches with elevated privileges.\n- **Invalid Paths**: Provides descriptive error messages if the specified paths are invalid or inaccessible.\n- **Installation Failures**: Logs errors for fonts that fail to install.\n\n## Known Issues\n\n- The application assumes Rainmeter is installed and accessible via `Rainmeter.exe`. Ensure the executable is in your system's PATH or adjust the logic as needed.\n\n## Contributing\n\nFeel free to fork the repository and submit pull requests to enhance functionality or fix bugs.\n\n## License\n\nThis project is licensed under the Apache License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fexportfonts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstechbytes%2Fexportfonts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fexportfonts/lists"}