SOLVED fontDidOpen missing from custom-observers docs
-
The custom observers list is missing an entry for
fontDidOpen
. Its siblingfontDidClose
is documented.
-
-
should be fixed here
-
that part of the docs is automatically generated by skimming the code...
fontWillOpen
,newFontWillOpen
,fontDidOpen
andnewFontDidOpen
are also automatically build... too much auto, will be fixed later on todaythanks
-
hello Erik, thanks for reporting this. I’ve been looking into it. some events are indeed missing from the custom observers page, but they do appear in the custom tools page. it’s a bit complicated:
The API docs are different from the rest of the documentation, because the content has to be extracted from the source code of fontParts, mojo, and RoboFont itself. This is done with a helper script which finds the relevant data and saves it as JSON files. These are then “magically” embedded into the actual documentation source (Jekyll/markdown).
- data in the custom tools page is extracted from the
BaseEventTool
object API - data in the custom observers page is extracted from the RoboFont source code (using a regular expression)
my best guess at the moment: the missing events are coming not from RoboFont, but from one of the underlying libraries. this would explain why the helper script is not able to find them in the source code, even though they are available in the app. (???)
@frederik any clue?
…to be continued…
- data in the custom tools page is extracted from the