Closed Bug 298302 Opened 20 years ago Closed 20 years ago

Font preferences reset after restart of Camino

Categories

(Camino Graveyard :: Preferences, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mandarax, Assigned: mikepinkerton)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050531 Camino/0.9+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050531 Camino/0.9+ In Preferences - Appearence - Fonts set the preferred font size to 16pt. After a restart of Camino the value will be the default value of 14pt again. Reproducible: Always Steps to Reproduce: 1.In Preferences - Appearence - Fonts set the preferred font size to 16pt. 2.Restart Camino Actual Results: The value will be the default value of 14pt again. Expected Results: Save the setting the user did. I looked into the preference file ~/Application Support/Camino/prefs.js before changing the font size and after. Camino seems to delete the setting user_pref("font.size.variable.x-western", 16); when trying to write into it after the user closes the preference panel instead of updating it. The whole line was gone from prefs.js.
WFM with 20050619. If you move your existing Camino profile (~/Application Support/Camino folder) to the Desktop, then start Camino and reset the pref, does it stay now?
(In reply to comment #1) > WFM with 20050619. > > If you move your existing Camino profile (~/Application Support/Camino folder) > to the Desktop, then start Camino and reset the pref, does it stay now? > I put my profile aside as suggested. Changing _only_ the default setting of the default font was saved and stayed between sessions. # Mozilla User Preferences user_pref("browser.startup.homepage", ""); user_pref("browser.startup.page", 1); user_pref("browser.startup_page_override.version", "0.9a1"); user_pref("font.name.serif.x-western", "Lucida Grande"); user_pref("intl.accept_languages", "en,de,fr,da,nl,fi,it,ja,ko,no,pt,sv,zh-cn,zh-tw"); user_pref("intl.charset.detector", "universal_charset_detector"); user_pref("network.cookie.prefsMigrated", true); ----- Second go: Because I don't like serif fonts on a webpage (for me they are harder to read), I started with applying my usual settings to this new profile. I set the default proportional font to Lucida Grande 16pt. In the advanced settings I changed the settings for serif, sans-serif, cursive and fantasy to Lucida Grande as well. After closing the preferences panel and closing Camino the file prefs.js looked like this: ----- # Mozilla User Preferences user_pref("browser.startup.homepage", ""); user_pref("browser.startup.page", 1); user_pref("browser.startup_page_override.version", "0.9a1"); user_pref("font.default.x-western", "sans-serif"); user_pref("font.name.cursive.x-western", "Lucida Grande"); user_pref("font.name.fantasy.x-western", "Lucida Grande"); user_pref("font.name.sans-serif.x-western", "Lucida Grande"); user_pref("font.name.serif.x-western", "Lucida Grande"); user_pref("intl.accept_languages", "en,de,fr,da,nl,fi,it,ja,ko,no,pt,sv,zh-cn,zh-tw"); user_pref("intl.charset.detector", "universal_charset_detector"); user_pref("network.cookie.prefsMigrated", true); ----- So user_pref("font.size.variable.x-western", 16); was never written?
(In reply to comment #2) > So user_pref("font.size.variable.x-western", 16); was never written? 16pt *is* the default for proportional fonts; I just checked. When the user preference is the same as the application default, no user_pref() line is written. Is 16pt still showing up in the Font tab of the Appearance prefpane (after relaunching Camino after changing all of your fonts to Lucida Grande)?
Please update, if not done I will close thisbug.
(In reply to comment #3) Sorry for the delay, I've been offline for a while > Is 16pt still showing up in the Font tab of the Appearance prefpane (after > relaunching Camino after changing all of your fonts to Lucida Grande)? > I put away my profile and launched Camino (now 2005070308 (v0.9a1+)) anew. Went to Preferences->Appearance->Fonts. Changed Times 16pt to Lucida Grande 16pt. Went to Advanced. Changed Sans-serif to Lucida Grande Changed Cursive to Lucida Grande Changed Fantasy to Lucida Grande Set the default font to Sans-serif Closed the Preference panel. Quit Camino. Launched Camino again. Went to Preferences->Appearance->Fonts. Proportional (Sans-serif) shows Lucida Grande, 16pt. prefs.js looks like this: --- # Mozilla User Preferences /* Do not edit this file. * * If you make changes to this file while the application is running, * the changes will be overwritten when the application exits. * * To make a manual change to preferences, you can visit the URL about:config * For more information, see http://www.mozilla.org/unix/customizing.html#prefs */ user_pref("browser.startup.homepage", "http://www.mozilla.org/projects/camino/homepage.html"); user_pref("browser.startup.page", 1); user_pref("font.default.x-western", "sans-serif"); user_pref("font.name.cursive.x-western", "Lucida Grande"); user_pref("font.name.fantasy.x-western", "Lucida Grande"); user_pref("font.name.sans-serif.x-western", "Lucida Grande"); user_pref("font.name.serif.x-western", "Lucida Grande"); user_pref("intl.accept_languages", "en,de,fr,da,nl,fi,it,ja,ko,no,pt,sv,zh-cn,zh-tw"); user_pref("intl.charset.detector", "universal_charset_detector"); user_pref("network.cookie.prefsMigrated", true); ---
This looks to me like it's working now as expected (as I noted in comment 3, the font size line won't be written unless it differs from the default, which is 16pt in this case). So closing WFM based on the results in comment 5; if the problem reappears, reopen this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.