![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: richText DBE: Font and font size? Topic Summary: How do you change them? Created On: 25-Jul-2008 16:36 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
No matter what I try, I can't seem to change the font or font size in a richText DBE.
I can change the font style (bold, italic, underline) with the approprate rich text tags (\b, \i, \u). But, I can't seem to change the font nor the font size. However, if I cut and paste the font/size from Word and paste it into a richText DBE, the font/size does copy over. But then, if I cut and paste the same rich text into the richText DBE using DXL, the font table and font size tags seem to get overwritten by some default. What is going on? Edited: 25-Jul-2008 at 16:36 by David Jakad |
|
![]() |
|
![]() |
|
Unfortunately, I think changing the font or font size in a richText DBE is impossible. The attached code shows a demonstration.
It appears that when using the set(DBE richText,string temp) command, to set the text in a richText DBE, it seems to do some automatic call of another function that immediately over-rides most rich text markup (font tables and font size tags). You can use the useRTFcolour command to force it to not over-ride the rich text color tags. The demonstration attached shows that the richText DBE does momentarily show the change in font and font size, only to have immediately changed to some default. You can also try to cut and paste some various fonts/sizes/colors from Word, and you'll see that the richText box can take on the different fonts/sizes/colors.... until the next set(DBE,string) command is issued at which point it is over-ridden again. Too bad there isn't a "useRTFfonts(DBE)" command. Edited: 25-Jul-2008 at 22:15 by David Jakad |
|
![]() |
|
![]() |
|
Hi David,
I asked Telelogic about this about a year ago. I made the same observations as you and could not work out why the fonts would draw correctly then immediatly shrink back to the default font size. Telelogic's response was that rich text DBEs do not support different fonts or font sizes. They said that they would consider it in a future release. Paul |
|
![]() |
|
![]() |
|
It's a little disappointing because you can see that the richText DBEs do actually support the fonts and font sizes, but that there is some sort of sub-routine called as part of the set() command that re-formats the text.
But, thanks for the confirmation. Now I can stop my fruitless efforts of trying to get it to work. I have been wondering if there is some possible work around. If you could get the rich text into the DBE without using the set() command, I think you'd have a solution. One solution might be to use some sort of copy/paste with the system clipboard. Unfortunately, the only copy/paste commands seem to only apply to objects. Anther possible solution might be if you could "insert" some text into the middle of the richText DBE string, without having to replace the entire string with the set() command. But so far, the only way I have seen to change the richText DBE content is with the set() command. |
|
![]() |
|
![]() |
|
I have found a way to change the font in a richText DBE.
You must use the \fcharset2 tag, instead of the \fcharset0 tag, in the font table. The attached DXL shows it can be done. I still have not found a way to change the font size. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
richText DBE: Font and font size?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.