I am wondering if such a java component exists, please let me clarify.
The component must be a mesh component derived from JComponent. The main face is the grid, and it will be used to render the font character. The grid is split based on the size of the input font character. For example, if the input is “A” “Arial, PLAIN, 16”, the grid will have cells 16X16, each cell represents a pixel of the character, only much larger than the real pixel, and the character is displayed inside the grid. Reason: a char of 16 pixels is too small to be visible in real size, so the grid panel actually enlarges it. In addition, the user can change the font size on the fly, say, from 16 to 32, the grid panel does not change its size, it only re-divides the cells into 32X32 and redraws the character, simulating a 32X32 pixel char.
I assume that the drawing program has something similar, I'm just wondering if there is such a component there in Java, open source or in advertising, otherwise it will be very painful for me to create it :-).
Thanks, John
source
share