Follow the documentation advice and prefer to use the ctor taking wxFontInfo as it makes the code slightly shorter and more readable.
This sample shows the use of modern OpenGL (3.2). Closes #16910.