Embedding fonts in modules

Is there any way to embed fonts in modules?

I’m usually on linux and default label fonts look all right, but on windows labels are plain ugly. Also, there’s a width difference that causes some problems with longer labels. I’m getting ready for a major update of my module and I would like to eliminate the disparity this time, if at all possible.

Thus spake Filip:

Is there any way to embed fonts in modules?

I’m usually on linux and default label fonts look all right, but on
windows labels are plain ugly. Also, there’s a width difference that
causes some problems with longer labels. I’m getting ready for a major
update of my module and I would like to eliminate the disparity this
time, if at all possible.

What paritcular use of fonts are you having a problem with? Are they
in Game Piece Images? In SVG? Somewhere else?


J.

Text labels. Dialog font differs between windows and linux.

Thus spake Filip:

Text labels. Dialog font differs between windows and linux.

No, there’s no facility for supplying fonts from a module for that at
present.


J.

Hmm, ok.

Where are those fonts located, actually? Is Vassal using system fonts, or are they included in the build?

Since I’m using a modified version of Vassal anyway, making a build with uniform linux/windows fonts might be an option.

Thus spake Filip:

Hmm, ok.

Where are those fonts located, actually? Is Vassal using system fonts,
or are they included in the build?

They’re fonts we request via Java. I don’t know whether they’re bundled
with JRE or if the JRE is only providing a facade over some system
fonts.


J.

Then, those are system fonts probably, as regardless of java version they display the same, and the difference between windows and linux seems consistent. Unless both openjdk and sun java use different fonts for various operating systems for some reasons, which I find unlikely.