Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Change fonts in DOORS?
Topic Summary:
Created On: 14-Jul-2004 15:11
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Wednesday, July 14, 2004 9:58 PM

Answer:
Using the GUI, select explorer tools menu, options, display tab, fonts tab.

Using DXL, the following functions are provided :

void getFontSettings(int level, int usedIn, int &size, int &family, bool &bold, bool &italic)

void setFontSettings(int level, int usedIn, int size, int family, bool bold, bool italic)

level is the object level (1..10)

usedIn can be one of the following predefined constants: HeadingsFont, TextFont, GraphicsFont.

family has values 0..3 to represent Times, Courier, Helvetica and New Century Schoolbook respectively.

size has values 0..5 to represent point sizes 8pt, 9pt, 10pt, 11pt, 12pt and 14pt respectively.

For example, to set the font used for level 2 headings to be 12pt Helvetica italic and bold:

setFontSettings(2, HeadingsText, 4, 2, true, true)

 14-Jul-2004 15:11
User is offline View Users Profile Print this message


Charing Maher

Posts: 14
Joined: 5-May-2004

Is there a way to change fonts in DOORS modules? Thanks.

-------------------------
Charing Maher
Systems Engineer, SAIC
Report this to a Moderator Report this to a Moderator
 14-Jul-2004 15:40
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
Using the GUI, select explorer tools menu, options, display tab, fonts tab.

Using DXL, the following functions are provided :

void getFontSettings(int level, int usedIn, int &size, int &family, bool &bold, bool &italic)

void setFontSettings(int level, int usedIn, int size, int family, bool bold, bool italic)

level is the object level (1..10)

usedIn can be one of the following predefined constants: HeadingsFont, TextFont, GraphicsFont.

family has values 0..3 to represent Times, Courier, Helvetica and New Century Schoolbook respectively.

size has values 0..5 to represent point sizes 8pt, 9pt, 10pt, 11pt, 12pt and 14pt respectively.

For example, to set the font used for level 2 headings to be 12pt Helvetica italic and bold:

setFontSettings(2, HeadingsText, 4, 2, true, true)



-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 14-Jul-2004 at 15:42 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 16-Jul-2004 19:32
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Goodman's way changes the way the generic letters LOOK to you, but don't actually change the fonts IN the text. Don't think but there MAY be a way to actually change the fonts inside RichText in DOORS v7.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.