FTPC Form Comparison object version comparison Chinese garbled problem solution

During the development process, script comments or attributes are in Chinese, and there will be garbled characters when comparing version content
Garbled Chinese display

Solution
The textFont of the com.datasweep.plantops.text.JTextDiffPanel class uses an unfriendly font setting by default in the code. We only need to change the property to the com.datasweep.compatibility.scripteditor.ScriptEditor.textFont property, so The font display is consistent with the settings in the script editor. Cooperating with the
previous editor text adjustment solution, it can solve the problem of Chinese garbled characters.
FTPC FormDesigner Script editor text size adjustment font adjustment function development
normal Chinese display

public class JTextDiffPanel extends JPanel implements AdjustmentListener, ActionListener {
    
    
    public static Font textFont = ScriptEditor.textFont;
}

Supongo que te gusta

Origin blog.csdn.net/oXiaoWeiWuDi/article/details/131313396
Recomendado
Clasificación