I’m trying to receive and react to a Windows broadcast message (WM_FONTCHANGE ). Is it actually possible somehow inside electron? With some extension maybe?
The other thing is to update the electron font cache. I add new fonts using AddFontResource and other apps are seeing the newly added font, so it works. But electron does not react, and does not see the added font. I tried relaunching it and clearing the cache, but no result. On the other hand, Chrome 47.0.2526.73 beta-m (64-bit) sees the added fonts after a re-launch. I also tried this in Atom, and atom does not see the font.
So the question is: is Chrome using some method to clear the font cache of some sort? How can I achieve the same in electron? I will be glad to hear any suggestions.