Examples of FontSelector


Examples of com.lowagie.text.pdf.FontSelector

            document.open();
            // step 4
            String text = "This text is the first verse of \u275dThe Iliad\u275e. It's not polytonic as it should be "
            + "with \u2798 and \u279a entoation variants but that's all we have for now.\n\n"
            + "\u2766\u00a0\u00a0\u039c\u03b7\u03bd\u03b9\u03bd \u03b1\u03b5\u03b9\u03b4\u03b5, \u03b8\u03b5\u03b1, \u03a0\u03b7\u03bb\u03b7\u03b9\u03b1\u03b4\u03b5\u03c9 \u0391\u03c7\u03b9\u03bb\u03b7\u03bf\u03c2";
            FontSelector sel = new FontSelector();
            sel.addFont(new LwgFont(LwgFont.TIMES_ROMAN, 12));
            sel.addFont(new LwgFont(LwgFont.ZAPFDINGBATS, 12));
            sel.addFont(new LwgFont(LwgFont.SYMBOL, 12));
            LwgPhrase ph = sel.process(text);
            document.add(new Paragraph(ph));
            // step 5
            document.close();
        }
        catch(Exception de) {
View Full Code Here

Examples of com.lowagie.text.pdf.FontSelector

            document.open();
            // step 4
            String text = "This text is the first verse of \u275dThe Iliad\u275e. It's not polytonic as it should be "
            + "with \u2798 and \u279a entoation variants but that's all we have for now.\n\n"
            + "\u2766\u00a0\u00a0\u039c\u03b7\u03bd\u03b9\u03bd \u03b1\u03b5\u03b9\u03b4\u03b5, \u03b8\u03b5\u03b1, \u03a0\u03b7\u03bb\u03b7\u03b9\u03b1\u03b4\u03b5\u03c9 \u0391\u03c7\u03b9\u03bb\u03b7\u03bf\u03c2";
            FontSelector sel = new FontSelector();
            sel.addFont(new Font(Font.TIMES_ROMAN, 12));
            sel.addFont(new Font(Font.ZAPFDINGBATS, 12));
            sel.addFont(new Font(Font.SYMBOL, 12));
            Phrase ph = sel.process(text);
            document.add(new Paragraph(ph));
            // step 5
            document.close();
        }
        catch(Exception de) {
View Full Code Here

Examples of com.lowagie.text.pdf.FontSelector

        if (bundle == null) {
            //get displaytag ressource bundle
            bundle = ResourceBundle.getBundle(org.displaytag.properties.TableProperties.LOCAL_PROPERTIES, Locale.getDefault());
        }
       
        selector = new FontSelector();
        selector.addFont(FontFactory.getFont(FontFactory.HELVETICA, 7, Font.NORMAL, new Color(0, 0, 0)));
        selector.addFont(new Font(BaseFont.createFont("fonts/Droid-Sans/DroidSans.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED), 7, Font.NORMAL, new Color(0, 0, 0)));
        selector.addFont(new Font(BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED), 7, Font.NORMAL, new Color(0, 0, 0)));
        selector.addFont(new Font(BaseFont.createFont("MSung-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED), 7, Font.NORMAL, new Color(0, 0, 0)));
        selector.addFont(new Font(BaseFont.createFont("HeiseiMin-W3", "UniJIS-UCS2-H", BaseFont.NOT_EMBEDDED), 7, Font.NORMAL, new Color(0, 0, 0)));
View Full Code Here

Examples of org.gjt.sp.jedit.gui.FontSelector

    addComponent(jEdit.getProperty(
      QuickNotepadPlugin.OPTION_PREFIX + "file"),
      pathPanel);

    font = new FontSelector(makeFont());
    addComponent(jEdit.getProperty(
      QuickNotepadPlugin.OPTION_PREFIX + "choose-font"),
      font);
  }
View Full Code Here

Examples of org.gjt.sp.jedit.gui.FontSelector

  //{{{ _init() method
  protected void _init()
  {
    /* Font */
    font = new FontSelector(jEdit.getFontProperty("print.font"));
    addComponent(jEdit.getProperty("options.print.font"),font);

    /* Header */
    printHeader = new JCheckBox(jEdit.getProperty("options.print"
      + ".header"));
View Full Code Here

Examples of org.gjt.sp.jedit.gui.FontSelector

    addComponent(jEdit.getProperty("options.appearance.lf"),
      lookAndFeel);

    /* Primary Metal L&F font */
    primaryFont = new FontSelector(jEdit.getFontProperty(
      "metal.primary.font"));
    addComponent(jEdit.getProperty("options.appearance.primaryFont"),
      primaryFont);

    /* Secondary Metal L&F font */
    secondaryFont = new FontSelector(jEdit.getFontProperty(
      "metal.secondary.font"));
    addComponent(jEdit.getProperty("options.appearance.secondaryFont"),
      secondaryFont);

    updateEnabled();
View Full Code Here

Examples of org.gjt.sp.jedit.gui.FontSelector

    String nameOfFont = SetupInfo.getProperty(SetupInfo.NAME_OF_REPORT_FONT);
    if (nameOfFont == null || nameOfFont.length() == 0) {
      nameOfFont = "SansSerif";
    }
    reportFont = new FontSelector(new Font(nameOfFont, Font.PLAIN, 12));
    MouseListener l1 =
      new MouseListener() {
        //{{{ +mouseClicked(MouseEvent) : void
        public void mouseClicked(MouseEvent e) { }//}}}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.