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 346777 - Cannot change the editor font
Cannot change the editor font
Status: RESOLVED DUPLICATE of bug 312660
Product: anjuta
Classification: Applications
Component: plugins: editor: scintilla
2.0.x
Other All
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-06 15:33 UTC by eldeh
Modified: 2008-11-23 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch correcting the problem for C++ file (162.42 KB, patch)
2006-12-17 11:52 UTC, Sylvain Defresne
reviewed Details | Review
patch i've made (875 bytes, patch)
2008-01-11 02:40 UTC, Mike Qin
none Details | Review

Description eldeh 2006-07-06 15:33:45 UTC
Please describe the problem:
In the preferences dialog, other font choies do not lead to other fonts in the editor view. Size can be changes, but the font is always some kind of courier.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
The editor component is scintilla.
Comment 1 Adam Dingle 2006-09-25 01:24:51 UTC
I see this too.  If I change the font in the Scintilla Fonts and Colors dialog, then source files including .c and .h files are still displayed in the default monospace font.  Strangely, other files (such as README or configure.in) *are* displayed in the font I selected.
Comment 2 Adam Dingle 2006-10-03 03:55:33 UTC
I experimented with this a bit more.  If I change the font *size*, then all source files including .c and .h files are displayed in the new size.  But changes to the typeface don't affect .c and .h files.
Comment 3 Adam Dingle 2006-10-04 15:51:18 UTC
Note that font changes work just fine in the GtkSourceView editor; this problem occurs only with Scintilla.
Comment 4 Sylvain Defresne 2006-12-17 11:52:49 UTC
Created attachment 78504 [details] [review]
Patch correcting the problem for C++ file

I investigated this bug this morning. It is caused by *.properties files hard-coding some values (like font, colors, ...) for some languages, including C++.

This patch change the C++ style to use the correct value (inherited from style.*.32) but it does not correct other languages supported by scintilla component. It should probably rewritten by passing on each and every language and ensuring that the style points to the correct default values.
Comment 5 Naba Kumar 2007-01-04 21:24:31 UTC
Are you sure the patch is right? It seems to comment out all they styling properties.
Comment 6 Mike Qin 2008-01-11 02:40:29 UTC
Created attachment 102563 [details] [review]
patch i've made
Comment 7 Mike Qin 2008-01-11 02:40:52 UTC
I think this may help
because style.properties did loaded on the startup process
and style.properties seems overwrite the style settings in the ~/.anjuta

so i delete the style settings in the data/properties/style.properties file, and it works here

Comment 8 Sébastien Granjoux 2008-11-23 11:55:48 UTC

*** This bug has been marked as a duplicate of 312660 ***