Lines Matching defs:font

44 #define GET_PLATFORMFONT(font)\
45 (env->CallObjectMethod(env, font, AwtFont::peerMID))
113 * Windows font the instance has.
148 static AwtFont* GetFont(JNIEnv *env, jobject font,
152 * Creates the specified font. name names the font. style is a bit
153 * vector that describes the style of the font. height is the point
154 * size of the font.
156 static AwtFont* Create(JNIEnv *env, jobject font,
168 * Loads the metrics of the associated font. See Font.GetFont for
178 * Sets the ascent of the font. This member should be called if
179 * font->m_nAscent < 0.
181 static void SetupAscent(AwtFont* font);
185 * specified font 'font' and multiplies it by the specified number
186 * of rows and columns. 'font' can be a temporary object.
188 static SIZE TextSize(AwtFont* font, int columns, int rows);
191 * If 'font' is NULL, the SYSTEM_FONT is used to compute the size.
192 * 'font' can be a temporary object.
194 static int getFontDescriptorNumber(JNIEnv *env, jobject font,
198 * 'font' is of type java.awt.Font.
200 static SIZE DrawStringSize_sub(jstring str, HDC hDC, jobject font,
204 INLINE static SIZE drawMFStringSize(HDC hDC, jobject font,
208 return DrawStringSize_sub(str, hDC, font, x, y, TRUE , codePage);
212 INLINE static SIZE getMFStringSize(HDC hDC, jobject font, jstring str,
215 return DrawStringSize_sub(str, hDC, font, 0, 0, FALSE, codePage);
219 INLINE static long getMFStringWidth(HDC hDC, jobject font,
221 return getMFStringSize(hDC, font, str).cx;
224 INLINE static void drawMFString(HDC hDC, jobject font, jstring str,
227 DrawStringSize_sub(str, hDC, font, x, y, TRUE, codePage);
231 jobject font) {
232 jobject platformFont = env->CallObjectMethod(font, AwtFont::peerMID);
248 /* The array of associated font handles */
254 /* The ascent of this font. */
256 /* The overhang, or amount added to a string's width, of this font. */
274 HFONT font;
282 void Add(WCHAR* name, HFONT font);
284 BOOL Search(HFONT font);
285 void Remove(HFONT font);