|
libgeda
|
functions to write postscript files More...
#include <config.h>#include <version.h>#include <stdio.h>#include <unistd.h>#include <time.h>#include <math.h>#include "libgeda_priv.h"
Go to the source code of this file.
Data Structures | |
| struct | glyph_list |
Defines | |
| #define | PROLOG_BUFFER_SIZE 8192 |
Functions | |
| static int | f_print_get_unicode_chars (TOPLEVEL *toplevel, const GList *obj_list, int count, gunichar *table) |
| Converts all text strings to unicode format. | |
| static void | f_print_unicode_map (FILE *fp, int count, gunichar *table) |
| Prints unicode map to postscript document. | |
| void | f_print_set_line_width (FILE *fp, int width) |
| Prints the line width in mils to a postscript document. | |
| int | f_print_set_color (TOPLEVEL *toplevel, FILE *fp, int color) |
| Prints the color to a postscript document. | |
| int | f_print_header (TOPLEVEL *toplevel, PAGE *page, FILE *fp, int paper_size_x, int paper_size_y, int eps) |
| Prints the header to a postscript document. | |
| void | f_print_footer (FILE *fp) |
| Prints the footer to a postscript document. | |
| void | f_print_objects (TOPLEVEL *toplevel, FILE *fp, const GList *obj_list, int start_x, int start_y, float scale, int unicode_count, gunichar *unicode_table) |
| Print all objects from the toplevel TOPLEVEL object. | |
| int | f_print_file (TOPLEVEL *toplevel, PAGE *page, const char *filename) |
| Print the current TOPLEVEL object to a file as a postscript document. | |
| int | f_print_command (TOPLEVEL *toplevel, PAGE *page, const char *command) |
| Opens a pipe to the specified command and prints the current TOPLEVEL object to the pipe as a postscript document. | |
| int | f_print_stream (TOPLEVEL *toplevel, PAGE *page, FILE *fp) |
| Print the current TOPLEVEL object to a stream as a postscript document. | |
| void | f_print_set_type (TOPLEVEL *toplevel, int type) |
| Sets the current TOPLEVEL object output type. | |
| int | f_print_initialize_glyph_table (void) |
| Initializes the glyph translation table. | |
Variables | |
| GHashTable * | unicode_char_to_glyph = NULL |
| Hashtable storing mapping between character and postscript glyph name. | |
| static struct glyph_list | glyphs [] |
Definition in file f_print.c.
| #define PROLOG_BUFFER_SIZE 8192 |
| static int f_print_get_unicode_chars | ( | TOPLEVEL * | toplevel, |
| const GList * | obj_list, | ||
| int | count, | ||
| gunichar * | table | ||
| ) | [static] |
| [in,out] | toplevel | The output TOPLEVEL element to store converted strings in. |
| [in] | obj_list | The object containing strings for conversion. |
| [in] | count | The number of elements in the unicode table. |
| [in] | table | The unicode table. |
Definition at line 639 of file f_print.c.

| static void f_print_unicode_map | ( | FILE * | fp, |
| int | count, | ||
| gunichar * | table | ||
| ) | [static] |
| void f_print_set_line_width | ( | FILE * | fp, |
| int | width | ||
| ) |
| int f_print_set_color | ( | TOPLEVEL * | toplevel, |
| FILE * | fp, | ||
| int | color | ||
| ) |
| [in] | toplevel | The current TOPLEVEL structure. |
| [in] | fp | The postscript document to print the color to. |
| [in] | color | Integer color to convert and print. |
Definition at line 71 of file f_print.c.

| int f_print_header | ( | TOPLEVEL * | toplevel, |
| PAGE * | page, | ||
| FILE * | fp, | ||
| int | paper_size_x, | ||
| int | paper_size_y, | ||
| int | eps | ||
| ) |
| [in] | toplevel | The TOPLEVEL object. |
| [in] | page | The page to create document for. |
| [in] | fp | The postscript document to write to. |
| [in] | paper_size_x | The width of the document on paper in inches. |
| [in] | paper_size_y | The height of the document on paper in inches. |
| [in] | eps | whether to create a eps of a ps document |
| void f_print_footer | ( | FILE * | fp | ) |
| void f_print_objects | ( | TOPLEVEL * | toplevel, |
| FILE * | fp, | ||
| const GList * | obj_list, | ||
| int | start_x, | ||
| int | start_y, | ||
| float | scale, | ||
| int | unicode_count, | ||
| gunichar * | unicode_table | ||
| ) |
| [in] | toplevel | The current TOPLEVEL object. |
| [in] | fp | The postscript document to print to. |
| [in] | obj_list | List of objects to be printed. |
| [in] | start_x | X origin on page to start printing objects. |
| [in] | start_y | Y origin on page to start printing objects. |
| [in] | scale | Scale factor for object output. |
| [in] | unicode_count | Number of items in unicode table. |
| [in] | unicode_table | Table of unicode items. |
Definition at line 238 of file f_print.c.

| void f_print_set_type | ( | TOPLEVEL * | toplevel, |
| int | type | ||
| ) |
| int f_print_initialize_glyph_table | ( | void | ) |
| GHashTable* unicode_char_to_glyph = NULL |
struct glyph_list glyphs[] [static] |