congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Font.addTraits
Code IndexAdd Tabnine to your IDE (free)

How to use
addTraits
method
in
org.eclipse.swt.graphics.Font

Best Java code snippets using org.eclipse.swt.graphics.Font.addTraits (Showing top 4 results out of 315)

origin: org.eclipse.swt.cocoa.macosx/x86_64

NSMutableDictionary dict = ((NSMutableDictionary)new NSMutableDictionary().alloc()).initWithCapacity(3);
dict.setObject(data.font.handle, OS.NSFontAttributeName);
data.font.addTraits(dict);
NSAttributedString attribStr = ((NSAttributedString)new NSAttributedString().alloc()).initWithString(NSString.stringWith(s), dict);
data.textStorage.setAttributedString(attribStr);
origin: org.eclipse.swt.cocoa.macosx/x86_64

Font font = data.font;
dict.setObject(font.handle, OS.NSFontAttributeName);
font.addTraits(dict);
if (draw) {
  Pattern pattern = data.foregroundPattern;
origin: org.eclipse.swt.cocoa.macosx/x86_64

attrStr.addAttribute(OS.NSFontAttributeName, defaultFont.handle, range);
attrStr.addAttribute(OS.NSLigatureAttributeName, NSNumber.numberWithInt(0), range);
defaultFont.addTraits(attrStr, range);
  if (font != null) {
    attrStr.addAttribute(OS.NSFontAttributeName, font.handle, range);
    font.addTraits(attrStr, range);
origin: org.eclipse.swt.cocoa.macosx/x86_64

attrStr.beginEditing();
attrStr.addAttribute(OS.NSFontAttributeName, font.handle, range);
font.addTraits(attrStr, range);
attrStr.endEditing();
textStorage.setAttributedString(attrStr);
org.eclipse.swt.graphicsFontaddTraits

Popular methods of Font

  • getFontData
    Returns an array of FontDatas representing the receiver. On Windows, only one FontData will be retur
  • <init>
  • dispose
  • isDisposed
    Returns true if the font has been disposed, and false otherwise. This method gets the dispose state
  • equals
    Compares the argument to the receiver, and returns true if they represent the same object using a c
  • getDevice
  • hashCode
    Returns an integer hash code for the receiver. Any two objects that return true when passed toequal
  • init
  • gtk_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • checkDevice
  • cocoa_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • findFontData
  • cocoa_new,
  • findFontData,
  • win32_new

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now