libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
PMF StringAlignment Enumeration

Macros

#define U_SA_Near   0x00
 Position near.
 
#define U_SA_Center   0x01
 Position center.
 
#define U_SA_Far   0x02
 Position far.
 

Detailed Description

For EMF+ manual 2.1.1.29, Microsoft name: StringAlignment Enumeration (U_SA_*)

Note, that unlike EMF these are with respect to the bounding rectangle, not to a single point. So to draw centered text, for instance, U_SA_Center must be used, and the bounding rectangle must also be centered.

For horizontal positioning of L->R text Near is all the way left in the box, Far is all the way right, and Center puts the center of the text in the center of the box.

For vertical positioning things are a little strange. Near is a certain distance down from the top, Far is a certain distance up from the bottom, and center puts the center of the text in the center of the box. The "certain distance" is not specified in the EMF+ documentation. See the function U_PMR_drawstring() for an implementation that places text on the baseline.