third_party/cairo/src/cairo-pdf-operators.c
static cairo_status_t
_cairo_pdf_operators_set_font_subset (cairo_pdf_operators_t             *pdf_operators,
				      cairo_scaled_font_subsets_glyph_t *subset_glyph)
{
    cairo_status_t status;

    _cairo_output_stream_printf (pdf_operators->stream,
				 "/f-%d-%d 1 Tf\n",
				 subset_glyph->font_id,
				 subset_glyph->subset_id);
    if (pdf_operators->use_font_subset) {
	status = pdf_operators->use_font_subset (subset_glyph->font_id,
						 subset_glyph->subset_id,
						 pdf_operators->use_font_subset_closure);
	if (unlikely (status))
	    return status;
    }
    pdf_operators->font_id = subset_glyph->font_id;
    pdf_operators->subset_id = subset_glyph->subset_id;
    pdf_operators->is_latin = subset_glyph->is_latin;

    if (subset_glyph->is_composite)
	pdf_operators->hex_width = 4;
    else
	pdf_operators->hex_width = 2;

    return CAIRO_STATUS_SUCCESS;
}
/* Select the font using the 'Tf' operator. The font size is set to 1
 * as we use the 'Tm' operator to set the font scale.
 */
Select the font using the 'Tf' operator. The font size is set to 1
as we use the 'Tm' operator to set the font scale.
Select the font using the ' Tf ' operator . The font size is set to 1 as we use the ' Tm ' operator to set the font scale .
static cairo_status_t
_cairo_pdf_operators_set_font_subset (cairo_pdf_operators_t             *pdf_operators,
				      cairo_scaled_font_subsets_glyph_t *subset_glyph)
{
    cairo_status_t status;
    _cairo_output_stream_printf (pdf_operators->stream,
				 "/f-%d-%d 1 Tf\n",
				 subset_glyph->font_id,
				 subset_glyph->subset_id);
    if (pdf_operators->use_font_subset) {
	status = pdf_operators->use_font_subset (subset_glyph->font_id,
						 subset_glyph->subset_id,
						 pdf_operators->use_font_subset_closure);
	if (unlikely (status))
	    return status;
    }
    pdf_operators->font_id = subset_glyph->font_id;
    pdf_operators->subset_id = subset_glyph->subset_id;
    pdf_operators->is_latin = subset_glyph->is_latin;
    if (subset_glyph->is_composite)
	pdf_operators->hex_width = 4;
    else
	pdf_operators->hex_width = 2;
    return CAIRO_STATUS_SUCCESS;
}
static cairo_status_t _cairo_pdf_operators_set_font_subset ( cairo_pdf_operators_t * pdf_operators , cairo_scaled_font_subsets_glyph_t * subset_glyph ) { cairo_status_t status ; _cairo_output_stream_printf ( pdf_operators -> stream , " \n " , subset_glyph -> font_id , subset_glyph -> subset_id ) ; if ( pdf_operators -> use_font_subset ) { status = pdf_operators -> use_font_subset ( subset_glyph -> font_id , subset_glyph -> subset_id , pdf_operators -> use_font_subset_closure ) ; if ( unlikely ( status ) ) return status ; } pdf_operators -> font_id = subset_glyph -> font_id ; pdf_operators -> subset_id = subset_glyph -> subset_id ; pdf_operators -> is_latin = subset_glyph -> is_latin ; if ( subset_glyph -> is_composite ) pdf_operators -> hex_width = 4 ; else pdf_operators -> hex_width = 2 ; return CAIRO_STATUS_SUCCESS ; }
Select the font using the 'Tf' operator.
Select the font using the ' Tf ' operator .