2.4.79 PlotGrowth

This record specifies the scale factors for font scaling in the plot area. The values from the Fbi record are used in conjunction with this record to render the scaled fonts in the plot area. If there is no Fbi record in which Fbi.scab is set to 0x0001, this record is unused and MUST be ignored.

If the scaled font size is the same as the font size of the Font record (as specified by Fbi.ifnt and Font.dyHeight), that Font record is used to render the scaled fonts. If the scaled font size is not the same as the size of the Font record (as specified by Fbi.ifnt), a new Font record is added to the font table, and the following font scaling algorithm is used to determine the scaled font size:

  1. Multiply Fbi.twpHeightBasis by dxPlotGrowth, and call this twpX.

  2. Multiply Fbi.twpHeightBasis by dyPlotGrowth, and call this twpY.

  3. Take the smaller of twpX and twpY, and call this twpNew. If this value is less than 10, set it to 10.

  4. Round this value from twips to the nearest quarter point.

  5. If Fbi.twpHeightBasis is in the range from 0x00A0 through 0x00F0 and twpNew is in the range from 0x0078 through 0x00A0, set twpNew to 0x00A0. If Fbi.twpHeightBasis is in the range from 0x00A0 through 0x00F0 and twpNew is in the range from 0x00F0 through 0x0118, set twpNew to 0x00F0.

  6. The twpNew value is the new scaled font size. If the dyHeight field of the Font record (as specified by Fbi.ifnt) is the same as twpNew, load that Font record for the scaled font. If it is not the same, twpNew is the new scaled font size, and a new Font record is added to the font table.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

dxPlotGrowth

dyPlotGrowth

dxPlotGrowth (4 bytes): A FixedPoint as specified in [MS-OSHARED] section 2.2.1.6 that specifies the horizontal growth, in points, of the plot area for font scaling.

dyPlotGrowth (4 bytes): A FixedPoint as specified in [MS-OSHARED] section 2.2.1.6 that specifies the vertical growth, in points, of the plot area for font scaling.