Tgif (program)
{{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check | template = Template:Infobox software | cat = Template:Main other | logo size; logo_size | logo class; logo_class | logo alt; logo_alt | logo title; logo_title | logo caption; logo_caption | screenshot size; screenshot_size | screenshot upright; screenshot_upright | screenshot class; screenshot_class | screenshot alt; screenshot_alt | screenshot title; screenshot title | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | programming language; programming_language | operating system; operating_system }} Tgif (pronounced t-g-i-f) is an Xlib-based interactive 2-D drawing tool (using vector graphics) under X11 on Linux and most UNIX platforms (including Mac OS X and cygwin on Windows). It was developed in 1990 and is free software released under the QPL license.
Quirks
Because Tgif was developed long before a standard way for drawing programs to work, one might find it unfamiliar to use in a number of ways:
- Although Tgif mention point sizes, it uses a unit that is 1/128 of an inch for point sizes.
- While there is an option to display font sizes in points, the sizes are still subject to rounding to the nearest 1/128".
- Unlike modern drawing programs, Tgif uses spline curves instead of Bézier curves.
- Also unlike modern drawing programs, Tgif does not allow the user to select a colour from a color wheel or through controls that allow the user to adjust colour values. Instead, Tgif provides a list with a short list of colours. If the user wishes to use a colour that is not in the list, they would need to add their desired colour to the list. This list is then saved with the currently-open drawing.
- Usable fonts are listed in a configuration file. If the user wishes to use fonts that are not on the list, they would have to change the configuration file.
- Only fonts in the ISO 8859-1 encoding (i.e. "square") CJK fonts and symbols or dingbat fonts can be used.
- Rescaling can lead to ugly defect, which is most likely due to both the use of integer coordinates and roundoff errors.
- Because Tgif uses Xlib (which predated modern Unicode support) Tgif does not and cannot support Unicode.
The Tgif file format
Tgif saves drawings in a Prolog-based[1] plain text file format. Because the program is based on Prolog,Template:Citation needed there isn't a lot of support from other programs for reading the Tgif file format.
Fonts are represented as PostScript font names. Originally, it was possible to print Tgif drawings in batch mode without using an X display. However, this feature changed somewhere in the 4.1 versions. Currently, in order to print drawings, the user would need to be running Tgif on an X display. This restriction cannot be applied if the drawing only uses Times Roman, Helvetica, Courier, and/or Symbol fonts.
References
External links
- ↑ Tgif FAQ - Tgif File Format, http://bourbon.usc.edu/tgif/faq/format.html