wiki:TEXT_FONTS_INTERFACE_R0

Version 2 (modified by dido, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=TEXT_FONTS_INTERFACE_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

  • There should be easy way for the user to change fonts. This functionality should appear in character settings hud and detached text frame editor.
  • User should be able to chose font name(Helvetica, Arial etc.) and font face(heavy, medium, oblique, gothic, regular etc.)

Task requirements

  • Add 2 combo boxes in character settings hud and detached frame editor, one for font name and one for font face.

Task result

  • The result should be code.

Implementation idea

  • Currently we use swing-based java component for font selection(JFontChooser). See if we can use some of it's functionality.
  • You can use org.sophie2.main.view.boundcontrols.BoundComboBox
  • Use java.awt.Font to provide needed fonts data.

TEXT_CHARACTER_FORMAT_COMMONS_R0
TEXT_FONTS_SUPPORT_R0

TEXT_HALO_MENU_R0
DETACHED_TEXT_FRAME_EDITOR_R0

How to demo

  • Run the application
  • Create a new book and place text frame inside
  • Populate some lorem ipsum text inside with a number of paragraphs(lorem ipsum generator --> http://www.lipsum.com/)
  • Select part of the text, open character settings hud and change the font.

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)