一键导入
fontsutil-font-usage
// Use when modifying EasyPostman Swing UI fonts, especially when dialogs, labels, tables, tabs, or renderers look too large or too small, or when a change needs to stay consistent with the user's configured UI font size.
// Use when modifying EasyPostman Swing UI fonts, especially when dialogs, labels, tables, tabs, or renderers look too large or too small, or when a change needs to stay consistent with the user's configured UI font size.
Use when adding or refactoring EasyPostman modules, shared code, plugin contracts, UI utilities, i18n, settings, theme/font handling, or deciding where a class belongs.
Use when modifying EasyPostman Swing forms that use FlatLaf and MigLayout, especially when layout refactors introduce clipped focus rings, truncated text, clipped status badges, dense spacing, border conflicts, or inconsistent form structure.
Use when adding or updating EasyPostman Swing/TestNG UI tests that may run in headless CI or no-display Linux environments.
| name | fontsutil-font-usage |
| description | Use when modifying EasyPostman Swing UI fonts, especially when dialogs, labels, tables, tabs, or renderers look too large or too small, or when a change needs to stay consistent with the user's configured UI font size. |
Use this skill when changing Swing font sizes in this repo. The goal is to keep UI text aligned with the user's configured base font size instead of freezing sizes with hard-coded deriveFont(..., 15f) style values.
13f, 15f, 18f, 22fFontsUtil.getDefaultFontWithOffset(style, offset).FontsUtil.getDefaultFont(style).0 or -1-1 or -2+1+1 or +2font.deriveFont(Font.BOLD) is acceptable.FontsUtil and reusable typography helpers belong in easy-postman-ui; startup-time application of font settings is app/platform orchestration. See docs/ARCHITECTURE_MODULES_zh.md.FontsUtil lives at:
easy-postman-ui/src/main/java/com/laker/postman/util/FontsUtil.javaFontsUtil reads the configured ui_font_size, clamps it, and derives from UI defaults.FontsUtil is the correct way to respect user-configured font size and keep fallback chains intact.label.getFont().deriveFont(Font.BOLD, 18f) for regular dialog headersFontsUtil and hard-coded point sizes in the same panel without a reasonmvn -q -pl easy-postman-app -am -DskipTests compile.