Lines Matching refs:data

283  * shaper face data
326 /* Create a copy of the font data, with the 'name' table replaced by a
332 * full, PS. All of them point to the same name data with our unique name.
346 name_str_len * 2; /* for name data in UTF16BE form */
375 /* Copy string data from new_name, converting wchar_t to UTF16BE. */
419 hb_uniscribe_face_data_t *data = (hb_uniscribe_face_data_t *) hb_calloc (1, sizeof (hb_uniscribe_face_data_t));
420 if (unlikely (!data))
423 data->funcs = hb_uniscribe_shaper_get_funcs ();
424 if (unlikely (!data->funcs))
426 hb_free (data);
434 blob = _hb_rename_font (blob, data->face_name);
437 hb_free (data);
442 data->fh = AddFontMemResourceEx ((void *) hb_blob_get_data (blob, nullptr),
445 if (unlikely (!data->fh))
448 hb_free (data);
452 return data;
456 _hb_uniscribe_shaper_face_data_destroy (hb_uniscribe_face_data_t *data)
458 RemoveFontMemResourceEx (data->fh);
459 hb_free (data);
464 * shaper font data
485 memcpy (lf->lfFaceName, font->face->data.uniscribe->face_name, sizeof (lf->lfFaceName));
493 hb_uniscribe_font_data_t *data = (hb_uniscribe_font_data_t *) hb_calloc (1, sizeof (hb_uniscribe_font_data_t));
494 if (unlikely (!data))
504 data->x_mult = (double) font->x_scale / font_size;
505 data->y_mult = (double) font->y_scale / font_size;
507 data->hdc = GetDC (nullptr);
509 if (unlikely (!populate_log_font (&data->log_font, font, font_size))) {
511 _hb_uniscribe_shaper_font_data_destroy (data);
515 data->hfont = CreateFontIndirectW (&data->log_font);
516 if (unlikely (!data->hfont)) {
518 _hb_uniscribe_shaper_font_data_destroy (data);
522 if (!SelectObject (data->hdc, data->hfont)) {
524 _hb_uniscribe_shaper_font_data_destroy (data);
528 return data;
532 _hb_uniscribe_shaper_font_data_destroy (hb_uniscribe_font_data_t *data)
534 if (data->hdc)
535 ReleaseDC (nullptr, data->hdc);
536 if (data->hfont)
537 DeleteObject (data->hfont);
538 if (data->script_cache)
539 ScriptFreeCache (&data->script_cache);
540 hb_free (data);
556 const hb_uniscribe_font_data_t *data = font->data.uniscribe;
557 return data ? &data->log_font : nullptr;
573 const hb_uniscribe_font_data_t *data = font->data.uniscribe;
574 return data ? data->hfont : nullptr;
591 const hb_uniscribe_face_data_t *face_data = face->data.uniscribe;
592 const hb_uniscribe_font_data_t *font_data = font->data.uniscribe;