I am using only lualatex, but I believe this question pertains to any engine. I have looked at the microtype docs (both user and code), and even looked in the package code, to no avail.
Unless disabled, microtype automatically loads a mt-fontname.cfg
file, if it finds one for the main font. Several of them come with the microtype package. In particular, there is one for the EB Garamond fonts.
I would like to prevent microtype from automatically loading that file. If I specify my own config
as package option, it will load my file after it loads the mt-EBGaramind.cfg
file. My own file cannot over-write or change anything that was already set in the mt-
file. Specifically, I refer to protrusion.
What I have done so far:
(1) Create a do-nothing mt-EBGaramond.cfg
file, and put it in texmf-local
. Microtype reads it instead of the built-in file. Then I can do what I wish with EB Garamond in my own *cfg file, because nothing was already set.
(2) As above, but put everything I need in that file, so it does not need to be in my own *cfg file.
(3) Specify a different main font, load microtype, then change to the real main font. This sounds like it should work, but I get errors. Did not go very deeply into this.
I note that if I use a font (such as Libertinus Serif) that does not have a mt-LibertinusSerif.cfg
file, then I can write what I need in my own *cfg, and it will be used.
My question: Is there a command, or a reliable hack, that will prevent microtype from automatically loading a mt-
file? Microtype itself is not disabled.
Why I ask: I have my own protrusion settings for that font.