Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

Centering a TextLine

$
0
0

Dear friends,

Again I was mislead by the name of a property

oTextLine.TextLineType = Constants.FV_TEXTLINE_CENTER;

 

I thought that this would be useful to center the text within a given space. But I could not find how to use it.

I found a straight-forward method:

CenterTextLine2.png

Towards the end of my function I have inserted (aLenght is the space width):

  textLen = oTextLine.Width;  boundLeft = (aLength*CM - textLen)/2;  oTextLine.BasePointX = x0*CM + boundLeft;

Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>