on 02-23-2015 6:08 PM
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
Amol,
DYNTEXT = Dynamic Text
<DYNTEXT(MINIMUM FONT SIZE, MAXIMUM FONT SIZE)>.
--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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:
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
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:
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.
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
User | Count |
---|---|
3 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.