Minor updates for 2.2.0. (#67820)

2002-12-14  Eric Warmenhoven <eric@warmenhoven.org>

	* gtk/framebuffer.sgml: Minor updates for 2.2.0. (#67820)
This commit is contained in:
Eric Warmenhoven
2002-12-15 05:47:24 +00:00
committed by Eric Warmenhoven
parent 880f14ff0c
commit b780b2a39b
2 changed files with 16 additions and 44 deletions

View File

@ -1,3 +1,7 @@
2002-12-14 Eric Warmenhoven <eric@warmenhoven.org>
* gtk/framebuffer.sgml: Minor updates for 2.2.0. (#67820)
2002-12-11 Matthias Clasen <maclas@gmx.de> 2002-12-11 Matthias Clasen <maclas@gmx.de>
* gtk/text_widget.sgml: Fix some links. * gtk/text_widget.sgml: Fix some links.

View File

@ -25,11 +25,14 @@ without any changes to the source.
<refsect2><title>Build requirements</title> <refsect2><title>Build requirements</title>
<para> <para>
You need GTK+ 2.0; the 1.2.x series does not have framebuffer support. You need GTK+ 2.0; the 1.2.x series does not have framebuffer support.
To compile GTK+ with framebuffer support you will need FreeType 2, we To compile GTK+ with framebuffer support you will need FreeType 2; we
recommend FreeType 2.0.1 or later, as there was some problems with recommend FreeType 2.0.1 or later, as there was some problems with
<command>freetype-config</command> in 2.0. Make sure that you install <command>freetype-config</command> in 2.0. Make sure that you install
FreeType before Pango, since Pango also needs it. FreeType can be found at FreeType before Pango, since Pango also needs it. FreeType can be found at
<ulink url="ftp://ftp.freetype.org">ftp://ftp.freetype.org</ulink>. <ulink url="ftp://ftp.freetype.org">ftp://ftp.freetype.org</ulink>. You also
need fontconfig in order to properly use the FreeType 2 backend in Pango.
Fontconfig depends on FreeType as well. Fontconfig can be found at
<ulink url="http://fontconfig.org">http://fontconfig.org</ulink>.
</para> </para>
</refsect2> </refsect2>
@ -45,7 +48,7 @@ be simple to add.
<refsect2><title>Building and installing</title> <refsect2><title>Building and installing</title>
<para> <para>
First build and install GLib and Pango as usual, in that order. First build and install GLib, ATK and Pango as usual, in that order.
Then configure GTK+ by running <command>configure</command> (or Then configure GTK+ by running <command>configure</command> (or
<command>autogen.sh</command> if running from <command>autogen.sh</command> if running from
@ -61,46 +64,11 @@ Since GtkFB uses FreeType 2 to render fonts it can render TrueType and
Postscript type 1 antialiased fonts. Postscript type 1 antialiased fonts.
</para> </para>
<para>At startup it scans some directories looking for fonts. By default
it looks in <filename>$prefix/lib/ft2fonts</filename>, and if you want to
change this you must add something like:
<programlisting>
[PangoFT2]
FontPath = /usr/share/fonts/default/Type1:/usr/share/fonts/default/TrueType
</programlisting>
To your <filename>$prefix/etc/pango/pangorc</filename> or <filename>~/.pangorc</filename>.
</para>
<para> <para>
You must also set up font aliases for the fonts Sans, Serif and GtkFB uses fontconfig for configuration of font information, including
Monotype. This is done by creating a directories and aliases. Make sure that you have your fonts.conf file
<filename>$prefix/etc/pango/pangoft2.aliases</filename> or configured with where your TrueType and Type1 fonts are. Please refer to the
<filename>~/.pangoft2_aliases</filename> file. You can also set the name of this file using fontconfig documentation for more information.
the key <literal>AliasFiles</literal> in the <literal>PangoFT2</literal> section in <filename>pangorc</filename>.
</para>
<para>
An example of a font alias file for the urw fontset is:
<informalexample><programlisting>
sans normal normal normal normal "urw gothic l"
serif normal normal normal normal "urw palladio l"
monospace normal normal normal normal "nimbus mono l"
</programlisting></informalexample>
</para>
<para>
And one using the Windows TrueType fonts is:
<informalexample><programlisting>
sans normal normal normal normal "arial"
serif normal normal normal normal "times new roman"
monospace normal normal normal normal "courier new"
</programlisting></informalexample>
A more detailed example can be found in
<filename>examples/pangoft2.aliases</filename> in the
Pango distribution.
</para> </para>
</refsect2> </refsect2>
@ -181,8 +149,8 @@ driver, so instead you can use shift-F1 instead when using this
driver. driver.
</para> </para>
<para>Pressing Ctrl-Alt-BackSpace kills the GtkFB program. (Can't be pressed <para>Pressing Ctrl-Alt-BackSpace kills the GtkFB program. (This can't be
in the xlate driver.)</para> pressed in the xlate driver, so instead you can use shift-F8.)</para>
</refsect2> </refsect2>
</refsect1> </refsect1>