Commit graph

118 commits

Author SHA1 Message Date
James Henstridge
c2897e2653 get rid of the local file optimisation. It didn't make a noticable
2002-12-10  James Henstridge  <james@daa.com.au>

    * src/ftstream-vfs.c (FT_New_Face_From_URI): get rid of the local
    file optimisation.  It didn't make a noticable difference for the
    large Asian fonts.

    * src/thumbnailer.c (main): set the charmap for the font before
    rendering the glyphs.  This fixes rendering of some fonts jdub
    sent me.
2002-12-09 16:30:07 +00:00
James Henstridge
a9a963aec7 handle multiline text. (add_face_info): add some extra information found
2002-12-09  James Henstridge  <james@daa.com.au>

    * src/font-view.c (add_row): handle multiline text.
    (add_face_info): add some extra information found in SFNT or Type1
    fonts.
    (create_text_pixmap): change the font output.

2002-12-06  James Henstridge  <james@daa.com.au>

    * src/ftstream-vfs.c (FT_New_Face_From_URI): if the URI looks
    local, bypass gnome-vfs to open the face (small optimisation).

    * src/font-view.c (create_text_pixmap): only display the font at
    its fixed sizes if it is not scalable.  Before we were ignoring
    the outlines on fonts such as Lucida Console, which includes both
    outlines and bitmaps for small sizes.
2002-12-09 14:30:07 +00:00
James Henstridge
76b15956a5 only display the font at its fixed sizes if it is not scalable. Before we
2002-12-06  James Henstridge  <james@daa.com.au>

    * src/font-view.c (create_text_pixmap): only display the font at
    its fixed sizes if it is not scalable.  Before we were ignoring
    the outlines on fonts such as Lucida Console, which includes both
    outlines and bitmaps for small sizes.
2002-12-06 08:59:05 +00:00
Yanko Kaneti
162c00c9d4 First stab at a spec file.
2002-12-06  Yanko Kaneti  <yaneti@declera.com>

	* Makefile.am (EXTRA_DIST):
	* configure.in (AC_OUTPUT):
	* fontilus.spec.in (added): First stab at a spec file.
2002-12-06 08:36:18 +00:00
James Henstridge
1174a5b0a9 set gnome-font-viewer as default app for type1, ttf and pcf fonts.
2002-12-05  James Henstridge  <james@daa.com.au>

    * src/fontilus.keys: set gnome-font-viewer as default app for
    type1, ttf and pcf fonts.

    * src/fontilus.applications: add application registry file for
    gnome-font-viewer.  Set it to accept URIs in file:/// and
    fonts:///.  It supports others though ...

    * src/Makefile.am: change executable names, and install them.

    * src/font-view.c (main): add an "in" shadow round the rendered text.
2002-12-05 15:47:45 +00:00
James Henstridge
d46f05cc6c move text drawing into separate function. (create_text_pixmap): handle
2002-12-05  James Henstridge  <james@daa.com.au>

    * src/font-view.c (draw_text): move text drawing into separate
    function.
    (create_text_pixmap): handle bitmap fonts by drawing the test
    string at the correct size(s).
    (add_face_info): display some information about the font.
2002-12-05 12:51:45 +00:00
James Henstridge
fad0b07622 change so that it renders the text at a number of different sizes, like
2002-12-05  James Henstridge  <james@daa.com.au>

    * src/font-view.c (main): change so that it renders the text at a
    number of different sizes, like fontcarton did.  Need to show some
    info about the font too ...
2002-12-05 02:12:12 +00:00
James Henstridge
d7588388ec (main): don't use Xft's FT_Library handle, since it is underscore
prefixed.  The real problem is that XftInitFtLibrary() wasn't
    getting called.
2002-12-04 15:42:51 +00:00
James Henstridge
9f2d67d4d0 get font to render correctly. Things work fine now that I am using the
2002-12-04  James Henstridge  <james@daa.com.au>

    * src/font-view.c (main): get font to render correctly.  Things
    work fine now that I am using the same FT_Library handle as Xft
    was ...
2002-12-04 15:29:28 +00:00
James Henstridge
2f4b9395dc start of simple font viewer program. Doesn't correctl display the text yet
2002-12-04  James Henstridge  <james@daa.com.au>

    * src/font-view.c (main): start of simple font viewer program.
    Doesn't correctl display the text yet though :(

    * src/ftstream-vfs.c (FT_New_Face_From_URI): rename function to
    match naming scheme used elsewhere.
2002-12-04 05:40:24 +00:00
James Henstridge
0e36c2dc90 (draw_bitmap): handle monochrome bitmaps.
(main): don't error out if we can't set pixel size.
2002-12-02 15:36:13 +00:00
James Henstridge
01e468fc57 split code for drawing character into separate function. (save_pixbuf):
2002-12-02  James Henstridge  <james@daa.com.au>

    * src/thumbnailer.c (draw_char): split code for drawing character
    into separate function.
    (save_pixbuf): function to save the pixbuf.  We crop the pixbuf
    leaving PAD_PIXELS pixels round the edges.

    * src/ftstream-vfs.c (FT_New_URI_Face): unset the
    FT_FACE_FLAG_EXTERNAL_STREAM flag on the face, so that it gets
    freed with the face.  (this is a bit of a hack ...).
2002-12-02 14:08:22 +00:00
James Henstridge
dd78dff000 unset the FT_FACE_FLAG_EXTERNAL_STREAM flag on the face, so that it gets
2002-12-02  James Henstridge  <james@daa.com.au>

    * src/ftstream-vfs.c (FT_New_URI_Face): unset the
    FT_FACE_FLAG_EXTERNAL_STREAM flag on the face, so that it gets
    freed with the face.  (this is a bit of a hack ...).
2002-12-02 08:07:44 +00:00
James Henstridge
2f46bdaa37 fix bound on for loop (gaaaargh). (main): re-enable shutdown of the
2002-12-02  James Henstridge  <james@daa.com.au>

    * src/thumbnailer.c (main): fix bound on for loop (gaaaargh).
    (main): re-enable shutdown of the library

    * src/Makefile.am (libfont_method_la_LIBADD): fix typo.

    * src/ftstream-vfs.c (FT_New_URI_Face): FT_Stream is a pointer, so
    sizeof(FT_Stram) gives the wrong result :(
2002-12-02 07:31:30 +00:00
James Henstridge
627140fc04 some makefile changes 2002-12-01 15:22:27 +00:00
James Henstridge
1abf43c039 include ".directory" in the directory listing. (do_open): handle
2002-12-01  James Henstridge  <james@daa.com.au>

    * src/font-method.c (do_read_directory): include ".directory" in
    the directory listing.
    (do_open): handle "/.directory".
    (do_get_file_info): handle "/.directory".
    (do_is_local): handle "/.directory".
2002-12-01 15:07:36 +00:00
James Henstridge
01f3ccb167 install font-method.conf 2002-12-01 13:59:26 +00:00
James Henstridge
92e7e7a7ff initial checkin 2002-12-01 13:52:09 +00:00