com.adobe.icc.ddg.api
Interface RenderHelperService

All Known Implementing Classes:
RenderHelperServiceImpl

public interface RenderHelperService


Method Summary
 java.lang.Double calculateTextIndent(java.lang.String bulletChar, java.lang.String fontSize, java.lang.String fontFamily, java.lang.String letterSpacing, boolean bold, boolean italic)
          Calculate the text indent required for given bullet char.
 java.lang.String convertPixelStylesToPoints(java.lang.String content)
          Some of the styles specially created using old version of editors might have font-size, letter-spacing values in pixels which vary as per screen resolution.
 

Method Detail

calculateTextIndent

java.lang.Double calculateTextIndent(java.lang.String bulletChar,
                                     java.lang.String fontSize,
                                     java.lang.String fontFamily,
                                     java.lang.String letterSpacing,
                                     boolean bold,
                                     boolean italic)
Calculate the text indent required for given bullet char. The returned text-indent should be multiple of tab size that is 36

Parameters:
bulletChar - the string containing bullet characters
fontSize - font size for e.g. 12pt
fontFamily - Font family
letterSpacing - Letter Spacing desired between the bullet characters e.g. 2pt
are - bullet characters bold
italic - are bullet characters italic
Returns:
Text Indent as multiple of 36

convertPixelStylesToPoints

java.lang.String convertPixelStylesToPoints(java.lang.String content)
Some of the styles specially created using old version of editors might have font-size, letter-spacing values in pixels which vary as per screen resolution. This method converts pixels values in points. Default implementation has 1:1 scaling between pixels and points.

Parameters:
content - The text content on which conversion has to applied
Returns:
Converted content which will have pixel values replaced by point values.


[an error occurred while processing this directive] [an error occurred while processing this directive]