cancel
Showing results for 
Search instead for 
Did you mean: 

WWI - Dynamic Text

Former Member
0 Kudos

Dear Experts,

This is regarding the WWI template. In Label / MSDS template many time we use Dynamic font size.

My query is that, the range (e.g 10 to 42) we are giving in template is exactly the font size what we want on report or it is some conversion of font size and this number?

e.g. if the code is <DYNTEXT(10,42)>, does it mean that, font size 10 to 42 or anything else?

so if code is <DYNTEXT(10,10)>, then output is also the text with Font Size 10??

Kindly Advise.

Thanking You !!

Regards

Amol

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191252
Active Participant
0 Kudos

Amol,

DYNTEXT = Dynamic Text

<DYNTEXT(MINIMUM FONT SIZE, MAXIMUM FONT SIZE)>.

--

Former Member
0 Kudos

Hi Tarun,

Thanks for elaborating the basics of WWI

Dear All,

regarding logic of dynamic text. below example illustrated by SAP

Example:

For a text box that is too small, the minimum font size was defined as 2 and the maximum font size as 12. The text box contains the following texts:

  • Headers: Font size 14
  • Text: Font size 10
  • Spacer paragraphs: Font size 4
  • Last character: Font size 4

As the last character has font size 4 and the minimum font size was defined as 2, the complete text in the text box can only be reduced by two steps in each case:

  • Headers from 14 to 12 to 11 (in accordance with the preset font sizes in Microsoft Word)
  • Text from 10 to 9 to 8
  • Spacer paragraphs from 4 to 3 to 2


I have not understood the line which highlighted in yellow color. can someone please elaborate the Logic SAP is applying while dynamic text


Values mentioned in DYNTXT(2,12).. are these number of steps or font size? as per yellow text, it seems that, these are number of steps by which system is reducing the font size.


Regards


Amol

christoph_bergemann
Active Contributor
0 Kudos

Dear Amol

font sizing is not easy. Check SAP help: WWI: Character Sizing - Product Safety (EHS-SAF) - SAP Library

You will find a "primitive" example: Character Sizing - Example - Product Safety (EHS-SAF) - SAP Library

which is related to explanation of Tarun. PLease check SAP marketplace. By hazard I checked it in the last weeks. A lot of OSS corrections in context of WWI (and font sizing) are available. So make sure that you use the current WWI version etc.

After reading the SAP example I believe the story runs as:

Minimum size: 2

Maximum size: 12

Important could be this: "The minimum and maximum font size refers to the size of the last character in the text box, which is always a paragraph mark."

The last character does have size 4. So system can only reduce 4 => 3 (one step) 3=2 (second step) (reduction: each steö: by one point)

The other fonts are decreased in same logic:

  • Text from 10 to 9 to 8 (therefore step one 10 => 9; step two: 9 => 😎

Therefore: the number of steps which can be applied depends on the font you use. And the font size is measured in "points".

Therefore: if the last character would have size "6" you can use more steps (6 => 5; 5 => 4 etc.). BUt Minimum size is "2" as defined

Hope this helps

C.B.

Ralph_P
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amol,

it is as Christoph highlighted: The last character is the important one since it is the smallest one. In your example, the last character is size 4. As the minimum size is defined as 2, the whole text can only be made 2 points smaller. If you made it 3 points smaller, the last character would be 1 point only which is against the definition of the minimum size.

So, go down 1 point: Last character size 3, headers size 13, Text size 9...

Go down another point: Last character size 2, headers size 12, text size 8...

Go down another point: Last character size 1 and STOP: This is against the definition, so this step will not happen.

Ralph