jcryptool / crypto

JCrypTool Crypto Plug-ins
https://www.cryptool.org
Eclipse Public License 1.0
68 stars 39 forks source link

Shamirgraph merged #293

Closed simlei closed 4 years ago

simlei commented 4 years ago

addresses #292

simlei commented 4 years ago

@grthor: I tried it in a VM already, looks good to me on Win + Linux :)

grthor commented 4 years ago

image

Looks smooth now.

grthor commented 4 years ago

My way to solve the problem is to use the font height to calculate the distance between the labels. The font height depends on the DPI and the screen zoom.

gc.getFontMetrics().getHeight() gets you the font height