Examples of Font


Examples of org.apache.flex.forks.batik.svggen.font.Font

        if (path != null)
        {
            try
            {
              // Use Batik to load the Font
              Font font = Font.create(path);

                if (font != null)
                {
                  FSType type = FSType.getFSType(font);
                  if (! type.usableByFlex)
                  {
                    throw new UnusableFontLicense(location + "", type.description);
                  }
                  String copyright = font.getNameTable().getRecord(Table.nameCopyrightNotice);
                  String trademark = font.getNameTable().getRecord(Table.nameTrademark);

                    // BatikFontManager will try to work out the real
                    // style from the sub family name and update the
                    // style property...
                    BatikFontFace fontFace = new BatikFontFace(font, 0,
View Full Code Here

Examples of org.apache.fop.fonts.Font

        follow = f;
    }

    /** @see org.apache.fop.layoutmgr.LayoutManager */
    public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
        Font fs = fobj.getCommonFont().getFontState(fobj.getFOEventHandler().getFontInfo(), this);
        alignmentContext
          = new AlignmentContext(fs, lineHeight.getValue(this), context.getWritingMode());
        context.setAlignmentContext(alignmentContext);
        // Get a break from currently active child LM
        // Set up constraints for inline level managers
View Full Code Here

Examples of org.apache.poi.ss.usermodel.Font

    // Funny one: Please note that the layout will be broken if the first
    // font is not 'Arial 10'.
    final short numberOfFonts = this.workbook.getNumberOfFonts();
    for (int i = 0; i < numberOfFonts; i++)
    {
      final Font font = workbook.getFontAt((short) i);
      this.fonts.put(new HSSFFontWrapper(font), font);
    }

    // add the default font
    // this MUST be the first one, that is created.
View Full Code Here

Examples of org.axsl.font.Font

     * The following items are <em>not </em>considered: space-start, space-end.
     * @return The new progression dimension value, in millipoints.
     */
    private int recomputeProgressionDimension() {
        final CharSequence text = getText();
        final Font font = this.getPrimaryFont().getFont();
        final int pd = font.width(text, this.traitFontSize(), this.traitLetterSpacingOpt(),
                this.traitWordSpacingOpt(), true);
        return pd;
    }
View Full Code Here

Examples of org.eclipse.dd.dc.Font

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetFont(Font newFont, NotificationChain msgs) {
        Font oldFont = font;
        font = newFont;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    BpmnDiPackage.BPMN_LABEL_STYLE__FONT, oldFont, newFont);
            if (msgs == null)
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.styles.Font

   
    // check whether the context has a size (e.g. from a create feature)
    // otherwise define a default size for the shape
    // now try to use the image dimension as figure dimension plus some height spacing
    // for the display label
    Font f = StyleUtil.getStyleForCamelText(getDiagram()).getFont();
    IDimension fontDimension = GraphitiUi.getUiLayoutService().calculateTextSize(label, f);
    Dimension imageDimension = ImageUtils.getImageSize(addedClass.getIconName());

    int image_width = imageDimension.width;
    int image_height = imageDimension.height;
View Full Code Here

Examples of org.eclipse.swt.graphics.Font

        }
    }


    public Font getFont(Object element, int columnIndex) {
        Font font = Display.getCurrent().getFocusControl().getFont();
        if (columnIndex == 1) {
            font = new Font(Display.getCurrent(), new FontData("Arial", 10, SWT.NORMAL));
        }
        return font;
    }
View Full Code Here

Examples of org.eclipse.swt.graphics.Font

    lHeader.setForeground(d.getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT));
    FontData[] fontData = lHeader.getFont().getFontData();
    fontData[0].setStyle(SWT.BOLD);
    int fontHeight = (int)(fontData[0].getHeight() * 1.2);
    fontData[0].setHeight(fontHeight);
    headerFont = new Font(d, fontData);
    lHeader.setFont(headerFont);
    lHeader.setText( " " + MessageText.getString( "authenticator.torrent" ) + " : " + download_manager.getDisplayName().replaceAll("&", "&&"));
    gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER);
    lHeader.setLayoutData(gridData);
   
View Full Code Here

Examples of org.eclipse.swt.graphics.Font

      descriptionLabel.setLayoutData(labelData);

      /*
       * Change the font to be italic for the description
       */
      Font initialFont = descriptionLabel.getFont();
      FontData[] fontData = initialFont.getFontData();
      for (int i = 0; i < fontData.length; i++) {
        fontData[i].setStyle(fontData[i].getStyle() | SWT.ITALIC);
      }
      descriptionLabel.setFont(new Font(getDisplay(), fontData));

    }

    if ((this.style & SHOW_EXPANDED) != 0) {
      isCollapsed = false;
View Full Code Here

Examples of org.eclipse.swt.graphics.Font

    lHeader.setForeground(d.getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT));
    FontData[] fontData = lHeader.getFont().getFontData();
    fontData[0].setStyle(SWT.BOLD);
    int fontHeight = (int)(fontData[0].getHeight() * 1.2);
    fontData[0].setHeight(fontHeight);
    headerFont = new Font(d, fontData);
    lHeader.setFont(headerFont);
   
    if ( managers.length == 1 ){
      lHeader.setText( " " + MessageText.getString( "authenticator.torrent" ) + " : " + managers[0].getDisplayName().replaceAll("&", "&&"));
    }else{
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.