Logo Search packages:      
Sourcecode: paps version File versions  Download package

paps_t* paps_new (  ) 

Create a new paps object that may subsequently be used for generating postscript strings.

Returns:

Definition at line 67 of file libpaps.c.

{
    paps_private_t *paps = g_new0(paps_private_t, 1);
    paps->header = g_string_new("");
    paps->glyph_cache = g_hash_table_new_full(g_str_hash,
                                    g_str_equal,
                                    g_free,
                                    g_free);
    // Make sure the cache will be invalid...
    paps->last_pos_x = -1e67;
    paps->last_pos_y = -1e67;
    paps->last_char_idx = 0;

    add_postscript_prologue(paps->header);

    return paps;
}


Generated by  Doxygen 1.6.0   Back to index