本文整理了Java中org.eclipse.swt.graphics.Font.gtk_new()
方法的一些代码示例,展示了Font.gtk_new()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Font.gtk_new()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Font
类名称:Font
方法名:gtk_new
[英]Invokes platform specific functionality to allocate a new font.
IMPORTANT: This method is not part of the public API for Font
. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms, and should never be called from application code.
[中]
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void setFontDescription (int /*long*/ font) {
super.setFontDescription (font);
layout.setFont (Font.gtk_new (display, font));
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void setFontDescription (int /*long*/ font) {
super.setFontDescription (font);
layout.setFont (Font.gtk_new (display, font));
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void setFontDescription (long /*int*/ font) {
super.setFontDescription (font);
layout.setFont (Font.gtk_new (display, font));
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
style.font = Font.gtk_new(display, fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
style.font = Font.gtk_new(display, fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
style.font = Font.gtk_new(display, fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
OS.memmove(face, faces[0] + j * OS.PTR_SIZEOF, OS.PTR_SIZEOF);
int /*long*/ fontDesc = OS.pango_font_face_describe(face[0]);
Font font = Font.gtk_new(this, fontDesc);
FontData data = font.getFontData()[0];
if (nFds == fds.length) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
OS.memmove(face, faces[0] + j * OS.PTR_SIZEOF, OS.PTR_SIZEOF);
long /*int*/ fontDesc = OS.pango_font_face_describe(face[0]);
Font font = Font.gtk_new(this, fontDesc);
FontData data = font.getFontData()[0];
if (nFds == fds.length) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
OS.memmove(face, faces[0] + j * OS.PTR_SIZEOF, OS.PTR_SIZEOF);
int /*long*/ fontDesc = OS.pango_font_face_describe(face[0]);
Font font = Font.gtk_new(this, fontDesc);
FontData data = font.getFontData()[0];
if (nFds == fds.length) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
OS.g_free (fontName);
int /*long*/ fontDesc = OS.pango_font_description_from_string (buffer);
Font font = Font.gtk_new (display, fontDesc);
fontData = font.getFontData () [0];
OS.pango_font_description_free (fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
OS.g_free (fontName);
int /*long*/ fontDesc = OS.pango_font_description_from_string (buffer);
Font font = Font.gtk_new (display, fontDesc);
fontData = font.getFontData () [0];
OS.pango_font_description_free (fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
OS.g_free (fontName);
long /*int*/ fontDesc = OS.pango_font_description_from_string (buffer);
Font font = Font.gtk_new (display, fontDesc);
fontData = font.getFontData () [0];
OS.pango_font_description_free (fontDesc);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
OS.pango_font_description_set_size(defaultFont, size * dpi.y / screenDPI.y);
systemFont = Font.gtk_new (this, defaultFont);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
OS.pango_font_description_set_size(defaultFont, size * dpi.y / screenDPI.y);
systemFont = Font.gtk_new (this, defaultFont);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
OS.pango_font_description_set_size(defaultFont, size * dpi.y / screenDPI.y);
systemFont = Font.gtk_new (this, defaultFont);
内容来源于网络,如有侵权,请联系作者删除!