Examples of createFont()


Examples of org.eclipse.jface.resource.LocalResourceManager.createFont()

        assets.addDragSupport(DND.DROP_MOVE, //
                        new Transfer[] { SecurityTransfer.getTransfer() }, //
                        new SecurityDragListener(assets));

        LocalResourceManager resources = new LocalResourceManager(JFaceResources.getResources(), assets.getTable());
        boldFont = resources.createFont(FontDescriptor.createFrom(assets.getTable().getFont()).setStyle(SWT.BOLD));
    }

    private void addAttributeColumns()
    {
        for (final AttributeType attribute : AttributeTypes.available(Security.class))
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.createFont()

    private static Style createLabelOffsetStyle() {
        StyleBuilder sb = new StyleBuilder();
        PointPlacement pp = sb.createPointPlacement(0.5, 0.5, 50, 0, 0);
        TextSymbolizer ts = sb.createTextSymbolizer();
        ts.setFont(sb.createFont("Bitstream Vera Sans", 20));
        ts.setLabel(sb.getFilterFactory().literal("name"));
        ts.setLabelPlacement(pp);
        ts.getOptions().put("partials", "true");
        return sb.createStyle(ts);
    }
View Full Code Here

Examples of org.jpedal.fonts.PdfFont.createFont()

                /**set an alternative to Lucida*/
                if(FontMappings.defaultFont!=null)
                    currentFontData.setDefaultDisplayFont(FontMappings.defaultFont);

                currentFontData.createFont(pdfObject, font_id,renderPage, objectStoreStreamRef, fontsLoaded);

                //save raw version
                currentFontData.setRawFontName(rawFontName);

                //fix for odd file
View Full Code Here

Examples of org.mt4j.components.visibleComponents.font.fontFactories.IFontFactory.createFont()

      //Create the font if we have a factory
      if (factoryToUse != null){
        System.out.println("Loading new font \"" + fontFileName + "\" with factory: " + factoryToUse.getClass().getName());
//        loadedFont = factoryToUse.createFont(pa, fontAbsoultePath, fontSize, fillColor, strokeColor);
        loadedFont = factoryToUse.createFont(pa, fontAbsoultePath, fontSize, fillColor, strokeColor, antiAliased);
        fonts.add(loadedFont);
        if (fonts.size() > CACHE_MAX_SIZE && !fonts.isEmpty()){
          IFont removedFont = fonts.remove(0); //FIXME destroy font, too!
          if (removedFont != null){
            removedFont.destroy();
View Full Code Here

Examples of processing.core.PApplet.createFont()

    if(arg instanceof PFont) {
      _font = (PFont) arg;
    } else if(arg instanceof String) {
      String str = (String) arg;
      _font = (str.indexOf(".vlw",str.length()-4) > 0)?
        app.loadFont(str) : app.createFont(str,64);
    } else if(arg instanceof HText) {
      _font = ((HText) arg)._font;
    } else if(arg == null) {
      _font = app.createFont("SansSerif",64);
    }
View Full Code Here

Examples of processing.core.PApplet.createFont()

      _font = (str.indexOf(".vlw",str.length()-4) > 0)?
        app.loadFont(str) : app.createFont(str,64);
    } else if(arg instanceof HText) {
      _font = ((HText) arg)._font;
    } else if(arg == null) {
      _font = app.createFont("SansSerif",64);
    }
    adjustMetrics();
    return this;
  }
 
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.