Custom profile development #333
Replies: 4 comments 7 replies
-
So yes, if you want to create your own checks then you will need a custom profile which implements checks, and that will have to be written in Rust. I guess a good first step is to discuss what you want to achieve because it might well be that the checks you want are generally useful and it would be worth including them in the fontspector core. (For example, when you say "check of my metadata", other people - e.g. @Hoolean - have raised the idea of a check where you put some font parameters into the fontspector config file:
and it goes through the tables and checks them. Is that the sort of thing you are thinking of?) Anyway, the direct answer to your question is:
so it gets fetched from crates.io. Additionally, any dependencies which use
From then on it's a matter of working out how you prefer to distribute the plugin binary to your other repositories. Popping the built binary into a repo and using it a submodule would probably work fine. But that's more of a general sysadmin/gitquestion than a fontspector one... |
Beta Was this translation helpful? Give feedback.
-
I’m trying to make a custom profile that checks foundry metadata using a custom profile. However I can’t install this custom profile in the |
Beta Was this translation helpful? Give feedback.
-
In the absence of documentation you make guesses ;-) I would prefer to be able to put things in arbitrary directories under a |
Beta Was this translation helpful? Give feedback.
-
Alright. I’m have been trying to create this from scratch a few times now, but I keep running into segmentation faults when running the checks on a font. I can successfully compile and list the custom checks I made, but when I run it against a font I get segmentation faults. Notably I also get segmentation faults when I run the microsoft checks against a font. (I had to do this to make the Microsoft plugin compile #164) Any ideas? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So it turn out I need more than just a list of existing things to turn on or off, so I gather that is beyond the TOML file and sends me into a Rust module? Say if I wanted to make a check of my metadata, how would I construct such a module external to the Fontspector repo? Can that even be explained in a few sentences? I would like my custom profile to be in my own repo, and then use that repo as a submodule in other font repos wherefrom I can run the
fontspector
tests from the CLI – just so you can understand the context.Beta Was this translation helpful? Give feedback.
All reactions