Font: Difference between revisions

From FreeMind
Jump to navigationJump to search
(+1)
No edit summary
Line 1: Line 1:
Each node can have its own font, including font family, font size, boldface indicator and italics indicator.
Each node can have its own font, including font family, font size, boldface indicator and italics indicator.


The default font family for nodes is set in the "freemind.properties" file, or "user.properties".
The default font properties for nodes is set in the "freemind.properties" file, or "user.properties", including default font family and default font size.
 
==Properties==
 
Properties in "freemind.properties":
 
#The default node font. This will only work if the font (TrueTypeFont) is available on the system
defaultfont = SansSerif
defaultfontstyle = 0
defaultfontsize = 12


==Implementation==
==Implementation==
Line 26: Line 35:
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/NodeAdapter.java?view=log NodeAdapter]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/NodeAdapter.java?view=log NodeAdapter]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/view/mindmapview/NodeView.java?view=log NodeView]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/view/mindmapview/NodeView.java?view=log NodeView]
* [http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind.properties?view=log freemind.properties]


[[Category:Development]]
[[Category:Development]]

Revision as of 15:42, 16 February 2009

Each node can have its own font, including font family, font size, boldface indicator and italics indicator.

The default font properties for nodes is set in the "freemind.properties" file, or "user.properties", including default font family and default font size.

Properties

Properties in "freemind.properties":

#The default node font. This will only work if the font (TrueTypeFont) is available on the system
defaultfont = SansSerif
defaultfontstyle = 0
defaultfontsize = 12

Implementation

  • Controller
    • Controller.getFontThroughMap
  • NodeAdapter
    • NodeAdapter.establishOwnFont
    • NodeAdapter.setBold
    • NodeAdapter.toggleBold
    • NodeAdapter.setItalic
    • NodeAdapter.toggleItalic
    • NodeAdapter.setFont
    • NodeAdapter.setFontSize
    • NodeAdapter.getFont
    • NodeAdapter.getFontSize
    • NodeAdapter.getFontFamilyName
    • NodeAdapter.isBold
    • NodeAdapter.isItalic
  • NodeView
    • NodeView.updateFont

CVS: