What kind of glass? Flat or cylindrical?
For flat, I have used paint and black paper underneath it. Not methods work well
I have used spray paint and acrylic paint on wine glasses and both paints work well. Acrylic is a LOT easier to get off than spray paint (warm water versus Goof Off)