@larryllix I don't know about java or the admin console, but in other programming languages they would write that information to a system environmental variable the when the console loads would read that and set the font size accordingly. Also changing the font size would update the system environmental variable with the new value.
I'll leave the java programming to someone who is expert at it.