Font getFont(int style) { switch (style) { case SWT.BOLD: if (boldFont != null) return boldFont; return boldFont = new Font(device, getFontData(style)); case SWT.ITALIC: if (italicFont != null) return italicFont; return italicFont = new Font(device, getFontData(style)); case SWT.BOLD | SWT.ITALIC: if (boldItalicFont != null) return boldItalicFont; return boldItalicFont = new Font(device, getFontData(style)); default: return regularFont; } } FontData[] getFontData(int style) {
Font getFont(int style) { switch (style) { case SWT.BOLD: if (boldFont != null) return boldFont; return boldFont = new Font(device, getFontData(style)); case SWT.ITALIC: if (italicFont != null) return italicFont; return italicFont = new Font(device, getFontData(style)); case SWT.BOLD | SWT.ITALIC: if (boldItalicFont != null) return boldItalicFont; return boldItalicFont = new Font(device, getFontData(style)); default: return regularFont; } } FontData[] getFontData(int style) {
Font getFont(int style) { switch (style) { case SWT.BOLD: if (boldFont != null) return boldFont; return boldFont = new Font(device, getFontData(style)); case SWT.ITALIC: if (italicFont != null) return italicFont; return italicFont = new Font(device, getFontData(style)); case SWT.BOLD | SWT.ITALIC: if (boldItalicFont != null) return boldItalicFont; return boldItalicFont = new Font(device, getFontData(style)); default: return regularFont; } } FontData[] getFontData(int style) {
Font getFont(int style) { switch (style) { case SWT.BOLD: if (boldFont != null) return boldFont; return boldFont = new Font(device, getFontData(style)); case SWT.ITALIC: if (italicFont != null) return italicFont; return italicFont = new Font(device, getFontData(style)); case SWT.BOLD | SWT.ITALIC: if (boldItalicFont != null) return boldItalicFont; return boldItalicFont = new Font(device, getFontData(style)); default: return regularFont; } } FontData[] getFontData(int style) {
Font getFont(int style) { switch (style) { case SWT.BOLD: if (boldFont != null) return boldFont; return boldFont = new Font(device, getFontData(style)); case SWT.ITALIC: if (italicFont != null) return italicFont; return italicFont = new Font(device, getFontData(style)); case SWT.BOLD | SWT.ITALIC: if (boldItalicFont != null) return boldItalicFont; return boldItalicFont = new Font(device, getFontData(style)); default: return regularFont; } } FontData[] getFontData(int style) {