Hi Alex,
i use a monospace font (Courier New) in general for all my notes; see options/notes list/text font. Since CN's editor offers true RTF functionality lately i want to switch to some non-monospace font. However, if i change the font in the notes list configuration all my saved notes will now appear with that font. This is in most cases not suitable to me, because i formatted those notes using a space layout. Imo CN should have recognized and marked notes as monospace, when a monospace font was used. Well, it didn't. I could change to non-monospace and edit old notes to explicitly use monospace. But that's quite a job for more than 1200 notes.
What do you think is best to do?
Thank you!
Thomas
Btw, the only way to change the monospace font for the editor is changing it in the settingsfile (editor.fonts.monospace), right?
Monospace font usage
-
- Posts: 1324
- Joined: Tue Mar 08, 2011 11:15 am
- CintaNotes Developer
- Site Admin
- Posts: 5002
- Joined: Fri Dec 12, 2008 4:45 pm
- Contact:
Re: Monospace font usage
Hi Thomas,
I think the easiest solution for you would be to export your DB to XML and wrap contents of each
CDATA section into a pair of <pre> tags.
Just do a search/replace:
<![CDATA[ => <![CDATA[<pre>
]]> => </pre>]]>
After that import this XML into a new DB, e voila, all notes are marked as monospace;)
Please let me know if this worked for you.
Thomas Lohrum wrote:i use a monospace font (Courier New) in general for all my notes; see options/notes list/text font. Since CN's editor offers true RTF functionality lately i want to switch to some non-monospace font. However, if i change the font in the notes list configuration all my saved notes will now appear with that font. This is in most cases not suitable to me, because i formatted those notes using a space layout. Imo CN should have recognized and marked notes as monospace, when a monospace font was used. Well, it didn't. I could change to non-monospace and edit old notes to explicitly use monospace. But that's quite a job for more than 1200 notes.
I think the easiest solution for you would be to export your DB to XML and wrap contents of each
CDATA section into a pair of <pre> tags.
Just do a search/replace:
<![CDATA[ => <![CDATA[<pre>
]]> => </pre>]]>
After that import this XML into a new DB, e voila, all notes are marked as monospace;)
Please let me know if this worked for you.
Alex
-
- Posts: 1324
- Joined: Tue Mar 08, 2011 11:15 am
Re: Monospace font usage
CintaNotes Developer wrote:I think the easiest solution for you would be to export your DB to XML and wrap contents of each CDATA section into a pair of <pre> tags.
Just do a search/replace:
<![CDATA[ => <![CDATA[<pre>
]]> => </pre>]]>
After that import this XML into a new DB, e voila, all notes are marked as monospace;)
Please let me know if this worked for you.
I knew you would come up with such an idea
![Smile :)](./images/smilies/icon_e_smile.gif)
What causes this entry?
How can i get rid off it?
How can i convert those notes?
Thank's for your help!
Thomas
-
- Posts: 1324
- Joined: Tue Mar 08, 2011 11:15 am
Monospace font configuration
In my settings file the default font is configured as:
app.mainframe.notetextfont = Courier New;10;400;0
The font can be changed with CN's GUI.
As for the monospace font in the editor there is no gui setting, only the settings file:
editor.fonts.monospace = Courier New
What is the size of the editor-fonts?
How can i change the size?
What are the values 400 and 0 in the mainframe setting?
Thomas
app.mainframe.notetextfont = Courier New;10;400;0
The font can be changed with CN's GUI.
As for the monospace font in the editor there is no gui setting, only the settings file:
editor.fonts.monospace = Courier New
What is the size of the editor-fonts?
How can i change the size?
What are the values 400 and 0 in the mainframe setting?
Thomas
- CintaNotes Developer
- Site Admin
- Posts: 5002
- Joined: Fri Dec 12, 2008 4:45 pm
- Contact:
Re: Monospace font usage
Thomas Lohrum wrote:What causes this entry?
How can i get rid off it?
How can i convert those notes?
CN sets this flag on notes which don't contain any formatting.
You can get rid of it simply mass-replacing [plainText="1"] with [plainText="0"].
Alex
- CintaNotes Developer
- Site Admin
- Posts: 5002
- Joined: Fri Dec 12, 2008 4:45 pm
- Contact:
Re: Monospace font configuration
Thomas Lohrum wrote:What is the size of the editor-fonts?
How can i change the size?[/quote
Only the face of the monospace font can be set, the size is fixed to be the same as the size of the text font.Thomas Lohrum wrote:What are the values 400 and 0 in the mainframe setting?
This value is not meant to be edited manually, since you can edit it in the GUI.
But just for reference, 400 is the value of font weight, set here for more info: http://msdn.microsoft.com/en-us/library ... 85%29.aspx. And 0 is the italics flag.
Alex
-
- Posts: 1324
- Joined: Tue Mar 08, 2011 11:15 am
Re: Monospace font configuration
CintaNotes Developer wrote:This value is not meant to be edited manually, since you can edit it in the GUI.
I don't think so. There is no setting in the gui to edit the monospace font of the notes editor. Only the font of the notes list can be changed in the gui.
What is the size of the monospace font (editor.fonts.monospace)?
Can i change that size?
Thank's.
Thomas
- CintaNotes Developer
- Site Admin
- Posts: 5002
- Joined: Fri Dec 12, 2008 4:45 pm
- Contact:
Re: Monospace font configuration
Thomas Lohrum wrote:I don't think so. There is no setting in the gui to edit the monospace font of the notes editor. Only the font of the notes list can be changed in the gui.
What is the size of the monospace font (editor.fonts.monospace)?
Can i change that size?
What made you think that these two parameters had the same format?
The editor.font.monospace parameter is font name only. To change its size, change the size of the note text font.
At the moment the size of the monospace font can't be changed independently.
Alex
Return to “CintaNotes Personal Notes Manager”