After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 361666 - Select font of journal editor
Select font of journal editor
Status: RESOLVED FIXED
Product: drivel
Classification: Deprecated
Component: general
3.0.x
Other Linux
: Normal enhancement
: 3.0
Assigned To: Neil Williams
Todd Kulesza
Depends on: 151855
Blocks:
 
 
Reported: 2006-10-12 10:14 UTC by sebi
Modified: 2009-08-19 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drivel-set-font.patch (13.27 KB, patch)
2006-10-12 10:15 UTC, sebi
needs-work Details | Review

Description sebi 2006-10-12 10:14:02 UTC
A font selector is a necessity for every text editor :).
Comment 1 sebi 2006-10-12 10:15:55 UTC
Created attachment 74552 [details] [review]
drivel-set-font.patch

This patch is against HEAD and adds the ability to select a font.
Comment 2 Zachary Stern 2007-06-21 11:26:51 UTC
This is important! I mean I can keep doing <font face=arial> texthere </font> until the end of time, but its a huge pain, and come on, why should it take until version 2.0.3+ to implement this simple feature.
Comment 3 Neil Williams 2009-04-03 21:32:24 UTC
I'll do some testing, see if it can get into 2.0.4 but I'm trying to limit the number of changes in 2.0.4 and put most into 2.1.1.
Comment 4 C de-Avillez 2009-04-03 23:57:39 UTC
Original Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/drivel/+bug/83788
Comment 5 Neil Williams 2009-04-05 14:47:34 UTC
Whilst the font *is* changed in the text editor window, I'm unsure whether the intention was to change the rendered font in the posted entry - it certainly does not do that currently (test with movable-type).

Zachary - by the sounds of this, it does not solve your request which I read as passing <font> tags through to the blog posting. If you want that, you will need to continue using <font> or post a new bug report for this enhancement. (Which blogging software are you using?) I think the rendering font used by the actual blog site will need to be configured via the blog theme in many cases - there is little chance that the fonts installed on the system (and available in the text view via this patch) will match anything available on the server or even be mappable from one to the other. I don't see a way of being able to reliably edit in the same font as the site will use for display - especially when blogs support users changing the theme (e.g. serendipity).

However, the patch itself adds noise to the drivel output when changing the font:

(drivel:5821): GLib-GObject-WARNING **: unable to set property `text' of type `gchararray' from value of type `GdkPixbuf'
(drivel:5821): GLib-GObject-WARNING **: unable to set property `pixbuf' of type `GdkPixbuf' from value of type `gchararray'
(drivel:5821): Drivel-CRITICAL **: editor_set_font: assertion `font_name != NULL' failed

I'd like that cleaned up before including the patch, so unless the patch is updated, this won't happen in 2.0.4, postponing to 2.1 instead.
Comment 6 Neil Williams 2009-06-26 20:43:57 UTC
Testing with 2.1 (trunk), the patch needed some tweaks - mainly to the Glade file. Manual addition of the glade components from the patch causes build problems because of other changes required with glade-3 -> GtkBuilder etc.

Postponing until after the transitions are complete and the necessary Gtk elements can be included into the final GtkBuilder file instead of Glade.
Comment 7 Neil Williams 2009-08-19 19:00:34 UTC
Updated patch committed to SVN for 3.0 - some work may still be needed on the port of the added widgets to GtkBuilder.