Lines Matching defs:font

68 extern jstring GetTextComponentFontName(JNIEnv *env, jobject font)
70 DASSERT(font != NULL);
75 jobject peer = env->CallObjectMethod(font, AwtFont::peerMID);
140 if (num == 0) { // not multi-font
163 HFONT font = m_hFont[i];
164 if (font != NULL && fontCache.Search(font)) {
165 fontCache.Remove(font);
167 only when the final reference to the font is disposed */
168 } else if (font != NULL) {
169 // if font was not in cache, its not shared and we delete it now
170 DASSERT(::GetObjectType(font) == OBJ_FONT);
171 VERIFY(::DeleteObject(font));
188 AwtFont* AwtFont::GetFont(JNIEnv *env, jobject font,
191 jlong pData = env->GetLongField(font, AwtFont::pDataID);
198 awtFont = Create(env, font, angle, awScale);
203 env->SetLongField(font, AwtFont::pDataID,
208 // Get suitable CHARSET from charset string provided by font configuration.
252 AwtFont* AwtFont::Create(JNIEnv *env, jobject font, jint angle, jfloat awScale)
254 int fontSize = env->GetIntField(font, AwtFont::sizeID);
255 int fontStyle = env->GetIntField(font, AwtFont::styleID);
265 if (IsMultiFont(env, font)) {
266 compFont = GetComponentFonts(env, font);
277 awtFont = new AwtFont(cfnum, env, font);
283 // Ask peer class for the text component font name
284 jstring jTextComponentFontName = GetTextComponentFontName(env, font);
305 //On NT platforms, if the font is not Symbol or Dingbats
312 // Check to see if this font is suitable for input
329 // no text component font was identified, so default
338 jstring fontName = (jstring)env->GetObjectField(font,
377 env->SetLongField(font, AwtFont::pDataID,
379 Disposer_AddRecord(env, font, pDataDisposeMethod,
463 // Set font name
468 *delimit = L'\0'; // terminate the string after the font name.
529 void AwtFont::SetupAscent(AwtFont* font)
533 HGDIOBJ oldFont = ::SelectObject(hDC, font->GetHFont());
537 font->SetAscent(metrics.tmAscent);
552 jobject font = env->GetObjectField(fontMetrics, AwtFont::fontID);
553 AwtFont* awtFont = AwtFont::GetFont(env, font);
556 /* failed to get font */
597 // Get font metrics on remaining fonts (if multifont).
616 env->DeleteLocalRef(font);
620 SIZE AwtFont::TextSize(AwtFont* font, int columns, int rows)
624 HGDIOBJ oldFont = ::SelectObject(hDC, (font == NULL)
626 : font->GetHFont());
640 int AwtFont::getFontDescriptorNumber(JNIEnv *env, jobject font,
650 if (IsMultiFont(env, font)) {
651 array = GetComponentFonts(env, font);
680 jobject font, long x, long y, BOOL draw,
703 //"useUnicode" field might not be initialized correctly (font in Menu Component,
705 AwtFont* awtFont = AwtFont::GetFont(env, font);
710 if (IsMultiFont(env, font)) {
711 jobject peer = env->CallObjectMethod(font, AwtFont::peerMID);
758 int fdIndex = getFontDescriptorNumber(env, font, fontDescriptor);
767 * alternating font descriptor and buffers, the buffers
857 jobject font = env->GetObjectField(self, AwtFont::fontID);
859 long ret = AwtFont::getMFStringWidth(hDC, font, str);
983 jobject font = env->GetObjectField(self, AwtFont::fontID);
984 if (font == NULL) {
985 JNU_ThrowNullPointerException(env, "fontMetrics' font");
989 jlong pData = env->GetLongField(font, AwtFont::pDataID);
1053 env->GetFieldID(cls, "font", "Ljava/awt/Font;"));
1123 void AwtFontCache::Add(WCHAR* name, HFONT font)
1125 fontCache.m_head = new Item(name, font, fontCache.m_head);
1135 return item->font;
1143 BOOL AwtFontCache::Search(HFONT font)
1148 if (item->font == font) {
1156 void AwtFontCache::Remove(HFONT font)
1162 if (item->font == font) {
1202 if (item->font == hFont){
1231 font = f;
1237 VERIFY(::DeleteObject(font));
1284 // CSegTable: Segment table describing character coverage for a font
1362 //for a Unicode font for Windows, platformID == 3, encodingID == 1
1580 // create EUDC font file and make EUDCSegTable
1755 // get filename of typeface-specific TureType EUDC font
1766 return; // no EUDC font
1769 // get EUDC font file name
1779 // try Typeface-specific EUDC font
1786 if (lStatus != ERROR_SUCCESS){ // try System default EUDC font
1799 // This font is associated with no EUDC font
1800 // and there is no system default EUDC font
1806 // This font is associated with no EUDC font
1807 // and the system default EUDC font is not TrueType