I would have used a (static) code module for this.
Note that the starter service can be used in B4XPages. It is however not cross platform.
If you can, think about it yourself please
It is better not to see the solution of some things and to do it cleverly and by the ide itself
It's no problem for me to define a class and pass it as an object to b4xPages.GlobalContext, but at least change the GlobalContext type or put a separate module that does not need to define a separate class.
Imagine doing this in any class that needs a global variable:
Dim myClass As globalDataClass = B4XPages.GlobalContext
Label.TypeFace = myClass.myTypeface_regular
I don't think it would be very interesting to come up with this wherever you need it, or at least in whatever class you needed to define a variable from that class.
I think it would be better this way:
Label.TypeFace = B4XPages.GlobalContext.myTypeface_regular
Because we can easily replace "Starter." with "B4XPages.GlobalContext." by ide Quick Search and there will be no need for additional work.
I apologize for my poor English, I hope I was able to convey my meaning to you.