Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,6 @@ public Font(Device device, String name, int height, int style) {
}
}

/*public*/ Font(Device device, String name, float height, int style) {
super(device);
init(name, height, style, null);
init();
}

void addTraits(NSMutableAttributedString attrStr, NSRange range) {
if ((extraTraits & OS.NSBoldFontMask) != 0) {
attrStr.addAttribute(OS.NSStrokeWidthAttributeName, NSNumber.numberWithDouble(SYNTHETIC_BOLD), range);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,6 @@ public Font(Device device, String name, int height, int style) {
init();
}

/*public*/ Font(Device device, String name, float height, int style) {
super(device);
init(name, height, style, null);
init();
}

@Override
void destroy() {
OS.pango_font_description_free(handle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,6 @@ public Font(Device device, String name, int height, int style) {
init();
}

/*public*/ Font(Device device, String name, float height, int style) {
super(device);
if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
this.zoom = DPIUtil.getNativeDeviceZoom();
this.fontData = new FontData (name, height, style);
this.fontHeight = height;
init();
}
@Override
void destroy() {
OS.DeleteObject(handle);
Expand Down
Loading