font styles
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1767
Font Mate 1.0
Font Mate is a simple program to help you see how fonts look on your computer, and to help you find symbol characters. more>>
Font Mate application helps you to see how fonts look on your computer, and it also helps you find symbol characters.
Using Font Mate
There isnt much to it: Font Mate shows you a list of all the fonts installed on your computer. Choose any font from the list and it will show you what all the characters in that font look like. Choose any one of those characters and you will see an enlarged version of it at the bottom of the page (with its ASCII code in decimal and hex, should you be interested). Click the button to copy that character to the clipboard if you want to use it in another application.
Works on...
We wrote Font Mate originally for Mac OS X, but we have included versions for Windows and Linux too. We wrote it using REALbasic, a great tool for cross-platform rapid development. Source is available on request.
How much?
Font Mate is freeware. Download, use, share as you wish. No warranty is offered, and we accept no liability for anything strange or nasty that it might do to your computer.
And another thing
If you like Font Mate, why not have a look at our main site at tellura.co.uk and check out our other products and services?
<<lessUsing Font Mate
There isnt much to it: Font Mate shows you a list of all the fonts installed on your computer. Choose any font from the list and it will show you what all the characters in that font look like. Choose any one of those characters and you will see an enlarged version of it at the bottom of the page (with its ASCII code in decimal and hex, should you be interested). Click the button to copy that character to the clipboard if you want to use it in another application.
Works on...
We wrote Font Mate originally for Mac OS X, but we have included versions for Windows and Linux too. We wrote it using REALbasic, a great tool for cross-platform rapid development. Source is available on request.
How much?
Font Mate is freeware. Download, use, share as you wish. No warranty is offered, and we accept no liability for anything strange or nasty that it might do to your computer.
And another thing
If you like Font Mate, why not have a look at our main site at tellura.co.uk and check out our other products and services?
Download (0.91MB)
Added: 2007-07-18 License: Freeware Price:
828 downloads
fntsample 2.6
fntsample is a program for making font samples that show Unicode coverage of the font. more>>
fntsample is a program for making font samples that show Unicode coverage of the font.
The samples are similar in appearance to Unicode charts. Samples can be saved as PDF or PostScript files.
Installation:
The simplest way to compile this package is:
1. `cd to the directory containing the packages source code and type `./configure to configure the package for your system. If youre using `csh on an old version of System V, you might need to type `sh ./configure instead to prevent `csh from trying to execute `configure itself.
Running `configure takes awhile. While running, it prints some messages telling which features it is checking for.
2. Type `make to compile the package.
3. Optionally, type `make check to run any self-tests that come with the package.
4. Type `make install to install the programs and any data files and documentation.
5. You can remove the program binaries and object files from the source code directory by typing `make clean. To also remove the files that `configure created (so you can compile the package for a different kind of computer), type `make distclean. There is also a `make maintainer-clean target, but that is intended mainly for the packages developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution.
Enhancements:
- This release makes it possible to change the default font styles and sizes for headers and numbers displayed on font samples.
<<lessThe samples are similar in appearance to Unicode charts. Samples can be saved as PDF or PostScript files.
Installation:
The simplest way to compile this package is:
1. `cd to the directory containing the packages source code and type `./configure to configure the package for your system. If youre using `csh on an old version of System V, you might need to type `sh ./configure instead to prevent `csh from trying to execute `configure itself.
Running `configure takes awhile. While running, it prints some messages telling which features it is checking for.
2. Type `make to compile the package.
3. Optionally, type `make check to run any self-tests that come with the package.
4. Type `make install to install the programs and any data files and documentation.
5. You can remove the program binaries and object files from the source code directory by typing `make clean. To also remove the files that `configure created (so you can compile the package for a different kind of computer), type `make distclean. There is also a `make maintainer-clean target, but that is intended mainly for the packages developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution.
Enhancements:
- This release makes it possible to change the default font styles and sizes for headers and numbers displayed on font samples.
Download (0.081MB)
Added: 2007-06-29 License: GPL (GNU General Public License) Price:
848 downloads
Gnome Font Sampler 0.4
Gnome Font Sampler lets you browse your installed fonts using whatever color. more>>
Gnome Font Sampler lets you browse your installed fonts using whatever color, size, attributes (Bold/Italics/Underline), and example text you like.
Main features:
- Quickly compare your fonts
- Select font size, text color, background color, bold, italics, underline, and example text used
- Preview fonts before adding them to the list
- Pretty good keyboard control
- It costs $0 and is Free software
Enhancements:
- New application icon.
- Improved keyboard control (navigate font lists and choose fonts using just the keyboard).
<<lessMain features:
- Quickly compare your fonts
- Select font size, text color, background color, bold, italics, underline, and example text used
- Preview fonts before adding them to the list
- Pretty good keyboard control
- It costs $0 and is Free software
Enhancements:
- New application icon.
- Improved keyboard control (navigate font lists and choose fonts using just the keyboard).
Download (0.30MB)
Added: 2005-08-05 License: GPL (GNU General Public License) Price:
1543 downloads
gfontsel 1.0.0
gfontsel program is a simple wrapper around the GTK+ 2 font selection dialog. more>>
gfontsel program is a simple wrapper around the GTK+ 2 font selection dialog. It allows you to select a font.
The font name is written to the standard output in the GTK+ 2 font naming scheme.
Building and installing the program:
- Read the makefile. Change the install locations if you want.
- To build the program invoke make.
- To install the program, invoke make install *as root*.
If you dont like it, login as root, change to the source directory and run make uninstall. After that you can remove the source tree.
<<lessThe font name is written to the standard output in the GTK+ 2 font naming scheme.
Building and installing the program:
- Read the makefile. Change the install locations if you want.
- To build the program invoke make.
- To install the program, invoke make install *as root*.
If you dont like it, login as root, change to the source directory and run make uninstall. After that you can remove the source tree.
Download (0.011MB)
Added: 2006-06-07 License: GPL (GNU General Public License) Price:
1234 downloads
Fontlinge 2.0.1
Fontlinge is a font management and organisation for TrueType & PostScript. more>>
Fontlinge project is a font management and organisation for TrueType & PostScript.
Fontlinge searches for font files, sorts them into folders by name and look and with human readable names, stores gathered font information in a database, generates previews and posters, finds and removes duplicates, and reunites PostScript font families.
Also, Fontlinge has a Web interface to browse through your fonts. It shows detail previews and font info, provides font download as a tarball, and has the possibility to sort fonts.
Main features:
- find your fonts
- rename files, i.e. from AGARBI.TTF to Adobe_Garamond_Bold_Italic.ttf
- create a folder-structure
- move the files to the right place
- find and removes duplicate files
- reunion postscript fontfiles
- create previews
<<lessFontlinge searches for font files, sorts them into folders by name and look and with human readable names, stores gathered font information in a database, generates previews and posters, finds and removes duplicates, and reunites PostScript font families.
Also, Fontlinge has a Web interface to browse through your fonts. It shows detail previews and font info, provides font download as a tarball, and has the possibility to sort fonts.
Main features:
- find your fonts
- rename files, i.e. from AGARBI.TTF to Adobe_Garamond_Bold_Italic.ttf
- create a folder-structure
- move the files to the right place
- find and removes duplicate files
- reunion postscript fontfiles
- create previews
Download (0.23MB)
Added: 2006-09-25 License: GPL (GNU General Public License) Price:
1126 downloads
6,760 Fonts
6,760 Fonts is a large archive with many free fonts. more>>
6,760 Fonts is a large archive with many free fonts.
The Absolute Fonts Archive created a page that will let you download many fonts one at a time, or for a fee you can download them all as a zip file.
Upon careful inspection of their site I found a multitude of corrupted font files. After removing all the corrupted files I was left with 6,760 fonts. I have chosen to turn them into a tarball and offer them as a free download.
Absolute Fonts Archive has neither licensed nor created any of the fonts on their site, but they do warn against commercial use of these fonts.
Version restrictions:
- installing that amount of fonts really slows down the KDE startup.
<<lessThe Absolute Fonts Archive created a page that will let you download many fonts one at a time, or for a fee you can download them all as a zip file.
Upon careful inspection of their site I found a multitude of corrupted font files. After removing all the corrupted files I was left with 6,760 fonts. I have chosen to turn them into a tarball and offer them as a free download.
Absolute Fonts Archive has neither licensed nor created any of the fonts on their site, but they do warn against commercial use of these fonts.
Version restrictions:
- installing that amount of fonts really slows down the KDE startup.
Download (MB)
Added: 2007-03-02 License: Freely Distributable Price:
996 downloads
FONTpage 2.0
FONTpage is a Python font viewing/image-generating utility. more>>
FONTpage is a Python font viewing and image-generating utility. It displays system fonts and allows you to change the font size and color, background color, font face, bold, and italics.
It also has the ability to input the text to be displayed, which you can choose to save as a PNG file. It is handy to view fonts and styles quickly, or to make "logo" graphics.
It was written to supersede wxFontView, as the pyGTK toolkit is much lighter and more widely used.
Enhancements:
- New "Display Font" feature opens popup window with complete alphabet (upper and lower case) and 0-9.
- Window shows current font with current size -- use multiple windows to compare different fonts.
- Font size now scales up to 256 pts (was 128)
- Config file will now track last window dimensions when the application is restarted.
- If user font directory directory (~/.fonts) does not exist, FONTpage will create one. This is to facilitate installing and deleting fonts, which FONTpage will only do on a per-user basis. (This is to avoid problems.)
<<lessIt also has the ability to input the text to be displayed, which you can choose to save as a PNG file. It is handy to view fonts and styles quickly, or to make "logo" graphics.
It was written to supersede wxFontView, as the pyGTK toolkit is much lighter and more widely used.
Enhancements:
- New "Display Font" feature opens popup window with complete alphabet (upper and lower case) and 0-9.
- Window shows current font with current size -- use multiple windows to compare different fonts.
- Font size now scales up to 256 pts (was 128)
- Config file will now track last window dimensions when the application is restarted.
- If user font directory directory (~/.fonts) does not exist, FONTpage will create one. This is to facilitate installing and deleting fonts, which FONTpage will only do on a per-user basis. (This is to avoid problems.)
Download (0.025MB)
Added: 2006-07-16 License: GPL (GNU General Public License) Price:
2156 downloads
Font::Scripts::AP 0.5
Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB). more>>
Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB).
SYNOPSIS
use Font::Scripts::AP;
$ap = Font::Scripts::AP->read_font($ttf_file, $ap_file, %opts);
$ap->make_classes();
INSTANCE VARIABLES
cmap
Reference to the Microsoft cmap within the font.
font
Reference to a font structure. read_font will cause at least the post, cmap, loca, and name tables to be read in.
glyphs
An array of references to glyph data structures, indexed by glyphID. Stucture elements are:
uni
Unicode scalar value, if any, as specified in the APDB. (decimal integer)
gnum
Actual glyph ID from font.
post
Actual Postscript name from font.
Note: The uni, gnum and post values are based on the UID, GID, and PSName fields of the APDB. If there are descrepancies between the APDB and the fonts internal tables, then for calcuating the above three values, priority is given first to UID field, then PSName field, and finally GID.
glyph
Reference to glyph structure read from font.
line
Line number in APDB where glyph is defined.
points
A hash of references to attachment point structures for this glyph, keyed by attachment point type (aka name). Each AP structure contains
name
The name (type in TTFBuilder terminology) of the attachment point
x, y
X and Y coordinates for the attachment point
line
Line number in APDB where this point is defined.
components
Present if the glyph is a composite. Is a reference to an array of component structures. Each component structure includes:
bbox
comma separated list of bounding box coordinates, i.e., x1, y1, x2, y2
uni
Unicode scalar value, if any, of the component. (decimal integer)
Note: The following instance variables contain the actual text read from the APDB. If there are descrepancies between the APDB and the font, these values may differ from corresponding values given above. Therefore these values should not be used except for diagnostic purposes.
UID
Unicode scalar value, if any, as specified in the APDB. (string of hex digits)
PSName
Postscript name, if any, as specified in the APDB
GID
Glyph id, if any, as specified in the APDB
classes
Created by "make_classes", this is a hash keyed by class name returning an array of GIDs for glyphs that are in the class. Classes are identified by extensions (part after a .) on the post name of each glyph. For each such extension, two classes are defined. The first is the class of all glyphs that have that extension (class name is the extension). The second is the class of nominal glyphs corresponding to the glyphs with that extension (class name is the extension but with the prefix no_).
lists
Created by "make_classes", this is a hash keyed by attachment point name (as modified by "make_point") returning an array of GIDs for glyphs that have the given attachment point.
vecs
If defined, this variable will be updated by "make_classes". It is a hash, keyed by attachment point name (as modified by "make_point") returning a bit vec bit array, indexed by GID, each bit set to 1 if the corresponding glyph has the given attachment point.
ligclasses
Optionally created by make_classes if ligatures are requested and they exist. The base forms class is no_code while the ligatures are held in code.
WARNINGS
If -errorfh not set, this accumulates any warning or error messages encountered.
WARNINGS
Count of number fo warnings or errors encountered.
<<lessSYNOPSIS
use Font::Scripts::AP;
$ap = Font::Scripts::AP->read_font($ttf_file, $ap_file, %opts);
$ap->make_classes();
INSTANCE VARIABLES
cmap
Reference to the Microsoft cmap within the font.
font
Reference to a font structure. read_font will cause at least the post, cmap, loca, and name tables to be read in.
glyphs
An array of references to glyph data structures, indexed by glyphID. Stucture elements are:
uni
Unicode scalar value, if any, as specified in the APDB. (decimal integer)
gnum
Actual glyph ID from font.
post
Actual Postscript name from font.
Note: The uni, gnum and post values are based on the UID, GID, and PSName fields of the APDB. If there are descrepancies between the APDB and the fonts internal tables, then for calcuating the above three values, priority is given first to UID field, then PSName field, and finally GID.
glyph
Reference to glyph structure read from font.
line
Line number in APDB where glyph is defined.
points
A hash of references to attachment point structures for this glyph, keyed by attachment point type (aka name). Each AP structure contains
name
The name (type in TTFBuilder terminology) of the attachment point
x, y
X and Y coordinates for the attachment point
line
Line number in APDB where this point is defined.
components
Present if the glyph is a composite. Is a reference to an array of component structures. Each component structure includes:
bbox
comma separated list of bounding box coordinates, i.e., x1, y1, x2, y2
uni
Unicode scalar value, if any, of the component. (decimal integer)
Note: The following instance variables contain the actual text read from the APDB. If there are descrepancies between the APDB and the font, these values may differ from corresponding values given above. Therefore these values should not be used except for diagnostic purposes.
UID
Unicode scalar value, if any, as specified in the APDB. (string of hex digits)
PSName
Postscript name, if any, as specified in the APDB
GID
Glyph id, if any, as specified in the APDB
classes
Created by "make_classes", this is a hash keyed by class name returning an array of GIDs for glyphs that are in the class. Classes are identified by extensions (part after a .) on the post name of each glyph. For each such extension, two classes are defined. The first is the class of all glyphs that have that extension (class name is the extension). The second is the class of nominal glyphs corresponding to the glyphs with that extension (class name is the extension but with the prefix no_).
lists
Created by "make_classes", this is a hash keyed by attachment point name (as modified by "make_point") returning an array of GIDs for glyphs that have the given attachment point.
vecs
If defined, this variable will be updated by "make_classes". It is a hash, keyed by attachment point name (as modified by "make_point") returning a bit vec bit array, indexed by GID, each bit set to 1 if the corresponding glyph has the given attachment point.
ligclasses
Optionally created by make_classes if ligatures are requested and they exist. The base forms class is no_code while the ligatures are held in code.
WARNINGS
If -errorfh not set, this accumulates any warning or error messages encountered.
WARNINGS
Count of number fo warnings or errors encountered.
Download (0.10MB)
Added: 2006-10-03 License: Perl Artistic License Price:
1117 downloads
Font Manager 0.0.1
Font Manager is a font manager for GNOME. more>>
Font Manager is a font manager for GNOME. Font Manager cannot do any font management tasks yet, but is already useful for picking fonts.
Main features:
- List installed fonts
- Add previews for installed fonts
- Open font properties from context menu
- Set system fonts from the font manager
- Make the font manager installable
<<lessMain features:
- List installed fonts
- Add previews for installed fonts
- Open font properties from context menu
- Set system fonts from the font manager
- Make the font manager installable
Download (0.15MB)
Added: 2006-03-22 License: LGPL (GNU Lesser General Public License) Price:
1480 downloads
wxFontView 0.4
wxFontView is a font viewing/image creation/installer. more>>
wxFontView is a font viewing/image creation/installer. Uses wxPython to display system fonts and allows user to change font size, color, background color, font face and the diplayed text.
Handy to view fonts and styles quickly, or use to make "logo" graphics. Also can be used to install/uninstall fonts on a per-user basis. (Does not touch system fonts.)
<<lessHandy to view fonts and styles quickly, or use to make "logo" graphics. Also can be used to install/uninstall fonts on a per-user basis. (Does not touch system fonts.)
Download (3.3MB)
Added: 2005-10-25 License: GPL (GNU General Public License) Price:
1459 downloads
x-fontperf 1.1
x-fontperf is a small utility to measure X11 font loading time. more>>
x-fontperf is a small utility to measure font rendering/loading time in an x11 environment. Originally intended to see if there is any notable performance difference between a separate font server and local font rendering.
It actually does three different tests:
1) Loading the same font several times
Gives you an average loading time for this particular font. If you use a font already in use in your x-session this should be really quick as this font will be reused and not actually loaded again (cached)
2) Loading the same font in different sizes (incrementing)
Default is from 6 to 144 pixel. Interesting to see how rendering time increases with font size (see option -v)
3) Loading all available fonts
This should give you a good estimate on average fontloading time. Also a good test to stress your system and check if all fonts are loadable (see option -e)
Sample output:
x-fontperf -v
x-fontperf: Copyright (c) Holger Pfaff - http://pfaff.ws
x-fontperf: version 1.1 from 26-Mar-2004
x-fontperf: connected to server: :0.0
x-fontperf: server vendor: Gentoo Linux (XFree86 4.3.0, revision r3)
x-fontperf: vendor release: 40300000
x-fontperf: total of 6406 fonts found
x-fontperf: basefont: -*-helvetica-*-*-*-*-12-*-*-*-*-*-iso8859-1
x-fontperf: loading basefont 100 times ... 6292 usec 62 usec/font
x-fontperf: loading font from pixel size 6 to 144 ... 2977820 usec 21578 usec/font
x-fontperf: loading all 6406 available fonts ... 34965472 usec 5458 usec/font
Usage:
Usage: x-fontperf ...
-display X-display to use
-v Increase verbosity (may falsify results)
-e Show errors during tests
-n Number of iterations for test 1 [100]
-min Minimum pixel size for test 2 [6]
-max Maximum pixel size for test 2 [144]
-foundry Foundry of font [*]
-family Family of font [helvetica]
-weight Weight of font [*]
-slant Slant of font [*]
-setwidth Set width of font [*]
-addstyle Additional style of font [*]
-pixelsize Pixel size of font [12]
-pointsize Point size of font [*]
-resolutionX X resolution of font [*]
-resolutionY Y resolution of font [*]
-spacing Spacing of font [*]
-avgwidth Average width of font [*]
-registry Registry of font [iso8859]
-encoding Encoding of font [1]
Verbosity can be increased in three steps by specifying -v several times. No-
tation -vvv is not supported. Use -v -v -v. Errors opening fonts are not shown
by default. Use -e to see them.
-n specifies the number of iterations for test 1. The default of 100 (shown in
brackets) should be ok for most systems. Increase/decrease values for fast/slow
systems
-min/-max specifies the minimum/maximum pixel size for test 2. Pixel sizes are
incremented by one.
The last block of arguments is for specifying the basefont to use for tests 1
and 2. These follow the standard x11 font naming scheme. Again: defaults are
shown in brackets.
Enhancements:
- first public version 1.0
<<lessIt actually does three different tests:
1) Loading the same font several times
Gives you an average loading time for this particular font. If you use a font already in use in your x-session this should be really quick as this font will be reused and not actually loaded again (cached)
2) Loading the same font in different sizes (incrementing)
Default is from 6 to 144 pixel. Interesting to see how rendering time increases with font size (see option -v)
3) Loading all available fonts
This should give you a good estimate on average fontloading time. Also a good test to stress your system and check if all fonts are loadable (see option -e)
Sample output:
x-fontperf -v
x-fontperf: Copyright (c) Holger Pfaff - http://pfaff.ws
x-fontperf: version 1.1 from 26-Mar-2004
x-fontperf: connected to server: :0.0
x-fontperf: server vendor: Gentoo Linux (XFree86 4.3.0, revision r3)
x-fontperf: vendor release: 40300000
x-fontperf: total of 6406 fonts found
x-fontperf: basefont: -*-helvetica-*-*-*-*-12-*-*-*-*-*-iso8859-1
x-fontperf: loading basefont 100 times ... 6292 usec 62 usec/font
x-fontperf: loading font from pixel size 6 to 144 ... 2977820 usec 21578 usec/font
x-fontperf: loading all 6406 available fonts ... 34965472 usec 5458 usec/font
Usage:
Usage: x-fontperf ...
-display X-display to use
-v Increase verbosity (may falsify results)
-e Show errors during tests
-n Number of iterations for test 1 [100]
-min Minimum pixel size for test 2 [6]
-max Maximum pixel size for test 2 [144]
-foundry Foundry of font [*]
-family Family of font [helvetica]
-weight Weight of font [*]
-slant Slant of font [*]
-setwidth Set width of font [*]
-addstyle Additional style of font [*]
-pixelsize Pixel size of font [12]
-pointsize Point size of font [*]
-resolutionX X resolution of font [*]
-resolutionY Y resolution of font [*]
-spacing Spacing of font [*]
-avgwidth Average width of font [*]
-registry Registry of font [iso8859]
-encoding Encoding of font [1]
Verbosity can be increased in three steps by specifying -v several times. No-
tation -vvv is not supported. Use -v -v -v. Errors opening fonts are not shown
by default. Use -e to see them.
-n specifies the number of iterations for test 1. The default of 100 (shown in
brackets) should be ok for most systems. Increase/decrease values for fast/slow
systems
-min/-max specifies the minimum/maximum pixel size for test 2. Pixel sizes are
incremented by one.
The last block of arguments is for specifying the basefont to use for tests 1
and 2. These follow the standard x11 font naming scheme. Again: defaults are
shown in brackets.
Enhancements:
- first public version 1.0
Download (0.004MB)
Added: 2005-04-11 License: Freely Distributable Price:
1656 downloads

Free Style for Linux 1.0
Free Style is a cute and colorful set that contains 10 icons more>> Description:
10 freeware icons designed in cartoon style.
Content:
Books, Bug, Car, CD, Cup, Flower, Hand, Ice Cream, Pencil, Tree<<less
Download (194KB)
Added: 2009-04-03 License: Freeware Price: Free
203 downloads
Choosefont 0.3
Choosefont is an efficient font finder. more>>
Choosefont is a simple but extremely efficient tool for quickly finding the required font in a large amount of fonts.
It was created due to the lack of decent font selection widgets in many application.
Apart from finding a font, Choosfont can also creat css, html and other code for the selected font, this code is automatically copied to the X clipboard.
<<lessIt was created due to the lack of decent font selection widgets in many application.
Apart from finding a font, Choosfont can also creat css, html and other code for the selected font, this code is automatically copied to the X clipboard.
Download (0.030MB)
Added: 2005-04-21 License: GPL (GNU General Public License) Price:
1650 downloads
Pzn Tennis 1.0
Pzn Tennis project isnt a tennis game... is like a pong game but with different rules and modified game styles. more>>
Pzn Tennis project isnt a tennis game... is like a pong game but with different rules and modified game styles.
Contrary to the classic pong game, you will be able to move your racket in all your area. PznTennis is a entertained game for 2 Players in the same PC.
<<lessContrary to the classic pong game, you will be able to move your racket in all your area. PznTennis is a entertained game for 2 Players in the same PC.
Download (0.50MB)
Added: 2007-04-20 License: Freeware Price:
919 downloads
OpenOffice::OODoc::Styles 2.026
OpenOffice::OODoc::Styles is a Perl module for document styles and layout processing. more>>
OpenOffice::OODoc::Styles is a Perl module for document styles and layout processing.
This class is designed to handle styles, whether automatic or named, contained in styles.xml or content.xml. It inherits from the common OpenOffice::OODoc::XPath class and brings style-focused features.
This class should not be explicitly used in an ordinary application, because all its features are available in the OpenOffice::OODoc::Document class, in combination with other features. Practically, the present manual is provided to describe the style processing features of OpenOffice::OODoc::Document (knowing that these features are technically supported by the OpenOffice::OODoc::Styles component of the API).
Remember that named styles are those that the end user can see and edit using the Stylist tool in OpenOffice.org. Such styles usually have meaningful names and are stored in the styles.xml member. But an OpenDocument-compliant style may own two names, so-called name and display-name. The display-name is the name as its displayed by the office software, while the name is the main identifier. Both are displayable character strings, but they often differ. For a given display-name, the application software is allowed to set any arbitrary name. For example, with OpenOffice.org 2, the well-known pre-defined style whose display name is "Text body" is named "Text_20_body" (the space character is replaced by its hexadecimal value between two "_" characters). In the other hand, the name and the display-name generally dont differ when they contain letters and/or digits only. Remember that the name (and not the display-name) is the main identifier of a style element. So, such a method as getStyleElement("style name") uses the name attribute to retrieve a style descriptor (unless you change this behaviour through the retrieve_by document property).
Care should be taken particularly with predefined base styles in OpenOffice.org. These styles are described in styles.xml just like named styles, but they appear to the end user with localised names (in their local language), so the really displayed style name is neither the name nor the display-name stored attributes. For example, in the French distribution of OpenOffice.org, the "Text body" style appears as "Corps de texte", while its "display-name" is "Text body" and its "name" is "Text_20_body". However, this is not a problem for user-defined styles as the stored display-name is exactly the same as the effective display name.
There are also numerous "automatic" styles in a document which are created implicitly by the office application each time a particular set of presentation attributes is given to an element, but where no named style is referenced. Automatic styles which apply to the document body are stored in content.xml (but in an XML element isolated from the content). An automatic styles name can change randomly each time the document is edited or saved in OpenOffice.org.
Applications which access automatic styles will not want to indicate them using "hard-coded" names. The best way is to retrieve each automatic style via an object that is known to use it. Using a "hard-coded" name is all right for styles created by a program (the createStyle() method requires it), but such a name should only be considered to be stable for the duration of the session. If you want a program-created style name to be then respected by OpenOffice.org, you must create it as a named style.
This is no more complicated, but it is better to avoid making hundreds of styles visible to the user that they do not need to see.
There are some structural differences between the old OpenOffice.org 1.0 format and the new OASIS Open Document (ODF) one. A few of these differences arent made fully transparent by OpenOffice::OODoc. So, in some cases, a program including style definitions or updates doesnt produce exactly the same results with both OOo 1 and OOo 2 documents.
Some styles are more complex than others as they describe the page layout. These styles can themselves contain text and images. A page style, or a "master page", can actually define a header, a footer, margins, and a background. Headers and footers can contain text and images which can otherwise be handled by OODoc::Text and OODoc::Image. A background contains a colour and can also include a background image (several methods are possible).
Presentation of these objects is itself controlled by styles.
All of this leads to the conclusion that it is not enough just to associate each content element with a style. In reality, document styles form a rather complex network of interdependencies.
As for page styles, the OpenOffice.org format contains a concept which must be understood in order to use some of the following methods. By virtue of the principle of separation of content and presentation, the definition of a page style is based on two distinct objects: "master page" and "page layout". A "master page" object encompasses any page style content (i.e. the content of headers and footers) and links to a "page layout" object which describes page presentation characteristics (with large numbers of parameters from page dimensions to background colour to footnote separator size, etc.). Names which appear in the list of page styles in OpenOffice.org are actually names of "master pages". However, to work with physical aspects of the presentation, you have to access the associated "page layout".
To complicate matters, there are also header and footer styles. Each object contained in a header or footer (e.g. paragraph or image) has a style. The number and range of styles are much larger that you would imagine just looking at the Stylist tool in OpenOffice.org. Up to a point, OODoc::Styles methods make life easier for you by masking some of this complexity.
In OODoc::Styles methods, styles are normally indicated by their logical names (which must be unique), but, except where otherwise stated, they can also be indicated by their style element reference. Moreover, when a method is expecting a page layout as an argument but the programmer passes it a master page instead (whether by design or by mistake), it "knows" in most cases how to automatically select the associated page layout.
Defining a style requires a great many attributes. Some appear in code examples in this manual, but for a full list of possible attributes for each style, you must refer to the OpenOffice.org specification or publications derived from it.
OODoc::Styles module is designed to allow applications to manipulate any style and even create new ones. It is not recommended, however, to use it to create a presentation entirely from code. Here again, it is better to start from document templates which already contain at least a blank of each required style.
<<lessThis class is designed to handle styles, whether automatic or named, contained in styles.xml or content.xml. It inherits from the common OpenOffice::OODoc::XPath class and brings style-focused features.
This class should not be explicitly used in an ordinary application, because all its features are available in the OpenOffice::OODoc::Document class, in combination with other features. Practically, the present manual is provided to describe the style processing features of OpenOffice::OODoc::Document (knowing that these features are technically supported by the OpenOffice::OODoc::Styles component of the API).
Remember that named styles are those that the end user can see and edit using the Stylist tool in OpenOffice.org. Such styles usually have meaningful names and are stored in the styles.xml member. But an OpenDocument-compliant style may own two names, so-called name and display-name. The display-name is the name as its displayed by the office software, while the name is the main identifier. Both are displayable character strings, but they often differ. For a given display-name, the application software is allowed to set any arbitrary name. For example, with OpenOffice.org 2, the well-known pre-defined style whose display name is "Text body" is named "Text_20_body" (the space character is replaced by its hexadecimal value between two "_" characters). In the other hand, the name and the display-name generally dont differ when they contain letters and/or digits only. Remember that the name (and not the display-name) is the main identifier of a style element. So, such a method as getStyleElement("style name") uses the name attribute to retrieve a style descriptor (unless you change this behaviour through the retrieve_by document property).
Care should be taken particularly with predefined base styles in OpenOffice.org. These styles are described in styles.xml just like named styles, but they appear to the end user with localised names (in their local language), so the really displayed style name is neither the name nor the display-name stored attributes. For example, in the French distribution of OpenOffice.org, the "Text body" style appears as "Corps de texte", while its "display-name" is "Text body" and its "name" is "Text_20_body". However, this is not a problem for user-defined styles as the stored display-name is exactly the same as the effective display name.
There are also numerous "automatic" styles in a document which are created implicitly by the office application each time a particular set of presentation attributes is given to an element, but where no named style is referenced. Automatic styles which apply to the document body are stored in content.xml (but in an XML element isolated from the content). An automatic styles name can change randomly each time the document is edited or saved in OpenOffice.org.
Applications which access automatic styles will not want to indicate them using "hard-coded" names. The best way is to retrieve each automatic style via an object that is known to use it. Using a "hard-coded" name is all right for styles created by a program (the createStyle() method requires it), but such a name should only be considered to be stable for the duration of the session. If you want a program-created style name to be then respected by OpenOffice.org, you must create it as a named style.
This is no more complicated, but it is better to avoid making hundreds of styles visible to the user that they do not need to see.
There are some structural differences between the old OpenOffice.org 1.0 format and the new OASIS Open Document (ODF) one. A few of these differences arent made fully transparent by OpenOffice::OODoc. So, in some cases, a program including style definitions or updates doesnt produce exactly the same results with both OOo 1 and OOo 2 documents.
Some styles are more complex than others as they describe the page layout. These styles can themselves contain text and images. A page style, or a "master page", can actually define a header, a footer, margins, and a background. Headers and footers can contain text and images which can otherwise be handled by OODoc::Text and OODoc::Image. A background contains a colour and can also include a background image (several methods are possible).
Presentation of these objects is itself controlled by styles.
All of this leads to the conclusion that it is not enough just to associate each content element with a style. In reality, document styles form a rather complex network of interdependencies.
As for page styles, the OpenOffice.org format contains a concept which must be understood in order to use some of the following methods. By virtue of the principle of separation of content and presentation, the definition of a page style is based on two distinct objects: "master page" and "page layout". A "master page" object encompasses any page style content (i.e. the content of headers and footers) and links to a "page layout" object which describes page presentation characteristics (with large numbers of parameters from page dimensions to background colour to footnote separator size, etc.). Names which appear in the list of page styles in OpenOffice.org are actually names of "master pages". However, to work with physical aspects of the presentation, you have to access the associated "page layout".
To complicate matters, there are also header and footer styles. Each object contained in a header or footer (e.g. paragraph or image) has a style. The number and range of styles are much larger that you would imagine just looking at the Stylist tool in OpenOffice.org. Up to a point, OODoc::Styles methods make life easier for you by masking some of this complexity.
In OODoc::Styles methods, styles are normally indicated by their logical names (which must be unique), but, except where otherwise stated, they can also be indicated by their style element reference. Moreover, when a method is expecting a page layout as an argument but the programmer passes it a master page instead (whether by design or by mistake), it "knows" in most cases how to automatically select the associated page layout.
Defining a style requires a great many attributes. Some appear in code examples in this manual, but for a full list of possible attributes for each style, you must refer to the OpenOffice.org specification or publications derived from it.
OODoc::Styles module is designed to allow applications to manipulate any style and even create new ones. It is not recommended, however, to use it to create a presentation entirely from code. Here again, it is better to start from document templates which already contain at least a blank of each required style.
Download (0.21MB)
Added: 2006-08-01 License: Perl Artistic License Price:
678 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above font styles search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed