-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get specific platform name entry #73
Comments
If you're still interested in this can you clarify what you want to retrieve? |
I just discovered this problem. By modifying it and adding other key information, I got what I needed. I've modified these functions below so that you can get a more specific message and use your own judgment to suit your needs. This change improves flexibility, but also increases the complexity for users. In addition, I also tried to support automatic encoding detection under mac fonts. The most common combinations tend to be the following:
(BTW: https://github.com/ConradIrwin/font is a good program. Its info tool can list the raw data in detail, which is helpful for your debugging.) Specifically:
If I don't modify it, it just discards/overwrites this information.
Usage like this:
|
@lslqtz feel free to submit a PR with those changes. Happy to review and include in a future release. |
I'm using a very simple modification, so I'm not sure I can guarantee its backwards compatibility, especially since I don't fully analyze and understand its replacement behavior. But this modification did solve my problem, so I posted these usages and cases in issues that may be similar. Since these new parameters are required in my modification, it may become a breaking change. (Another problem is that I only modified the TrueType function, which may lead to inconsistent usage between different font type) |
Thank you for the follow up. I'll review your changes and see how we can adapt them. Also, if you have any sample fonts for testing that would be great. |
Hi! I want to get the string associated with the Mac Entry id 2?
I tried different things but I dont get it.
getNameTableString() only returns Win entries?
The text was updated successfully, but these errors were encountered: