Class FontGlyphTableRender
java.lang.Object
FontGlyphTableRender
Opens a frame and displays, for a selected font, the glyphs for a range of Unicode code points. Can be used to
identify which glyphs are supported by a font. Can export to PDF. Requires core-renderer and OpenPDF on classpath.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Font
private static final int
private JTextField
private JTextField
private JTextField
private JFrame
private static final org.slf4j.Logger
private JButton
private static final String
private static final String
private String
private JButton
private static final int
private static final int
private XHTMLPanel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FontGlyphTableRender.Table
buildGlyphTable
(int from, int to) private JButton
private void
deferredChangePage
(int startAt) private void
deferredLoadAndRender
(int startAt, int renderTo) private void
private String
getFontFamily
(int renderTo) private String
getITextFontFamilyName
(File selFile) private boolean
isLegalInXml
(int uccp) private Document
loadDocument
(int startAt, int renderTo) private Font
static void
private String
private void
private void
private void
private void
run()
-
Field Details
-
log
private static final org.slf4j.Logger log -
TO_SWING
private static final int TO_SWING- See Also:
-
TO_PDF
private static final int TO_PDF- See Also:
-
OUTPUT_ENTITIES
- See Also:
-
OUTPUT_CODEPOINTS
- See Also:
-
ENT_PER_PAGE
private static final int ENT_PER_PAGE- See Also:
-
curFrom
private int curFrom -
outputType
-
currentFont
-
frame
-
xpanel
-
fontPathTF
-
familyNameFieldAwt
-
familyNameFieldIText
-
prevBtn
-
nextBtn
-
-
Constructor Details
-
FontGlyphTableRender
public FontGlyphTableRender()
-
-
Method Details
-
main
-
run
private void run() -
createChooseFontButton
-
getITextFontFamilyName
-
resetMouseListeners
private void resetMouseListeners() -
enableButtons
private void enableButtons() -
loadFont
- Throws:
IOException
-
deferredChangePage
private void deferredChangePage(int startAt) -
deferredLoadAndRender
private void deferredLoadAndRender(int startAt, int renderTo) -
loadDocument
-
buildGlyphTable
-
renderPDF
-
resolveCurrentFont
private void resolveCurrentFont() -
parseEnt
-
isLegalInXml
private boolean isLegalInXml(int uccp) -
getFontFamily
-