/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 
 
 A D O B E   S Y S T E M S   I N C O R P O R A T E D   
 
 C o p y r i g h t   2 0 0 8   A d o b e   S y s t e m s   I n c o r p o r a t e d   
 
 A l l   R i g h t s   R e s e r v e d   
 
 
 
 N O T I C E :     A d o b e   p e r m i t s   y o u   t o   u s e ,   m o d i f y ,   a n d   
 
 d i s t r i b u t e   t h i s   f i l e   i n   a c c o r d a n c e   w i t h   t h e   t e r m s 
 
 o f   t h e   A d o b e   l i c e n s e   a g r e e m e n t   a c c o m p a n y i n g   i t .     
 
 I f   y o u   h a v e   r e c e i v e d   t h i s   f i l e   f r o m   a   s o u r c e   
 
 o t h e r   t h a n   A d o b e ,   t h e n   y o u r   u s e ,   m o d i f i c a t i o n , 
 
 o r   d i s t r i b u t i o n   o f   i t   r e q u i r e s   t h e   p r i o r   
 
 w r i t t e n   p e r m i s s i o n   o f   A d o b e .   
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
 
 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
   
 
 K e r n R o m a n T e x t . j s x 
 
 
 
 D E S C R I P T I O N 
 
   
 
 A d d s   a   m i x t u r e   o f   A s i a n   a n d   R o m a n   t e x t   t o   a   t e x t   i t e m   t h e n 
 
 a p p l i e s   R o m a n O n l y K e r n i n g   t o   d e m o n s t r a t e   h o w   t h e   A s i a n   g l y p h s 
 
 a r e   u n a f f e c t e d   b y   t h e   k e r n i n g . 
 
   
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
   
 
 v a r   d o c R e f   =   a p p . d o c u m e n t s . a d d ( D o c u m e n t C o l o r S p a c e . C M Y K ) ; 
 
 
 
 / /   C r e a t e   a   n e w   t e x t   f r a m e   i n   t h e   d o c u m e n t . 
 
 v a r   t e x t R e f   =   d o c R e f . t e x t F r a m e s . a d d ( ) ; 
 
 t e x t R e f . t o p   =   1 0 0 ; 
 
 t e x t R e f . l e f t   =   2 0 0 ; 
 
 
 
 / /   A d d   R o m a n   a n d   A s i a n   t e x t   t o   t h e   t e x t   f r a m e . 
 
 t e x t R e f . c o n t e n t s   =   " R o m a n   t e x t   ,^p" ; 
 
   
 
 / /   C r e a t e   a   n e w   c h a r a c t e r   s t y l e   a n d   s e t   t h e   k e r n i n g   m e t h o d   a n d   f i l l   c o l o r 
 
 v a r   c h a r S t y l e   =   d o c R e f . c h a r a c t e r S t y l e s . a d d ( " K e r n R o m a n T e x t " ) ; 
 
 c h a r S t y l e . c h a r a c t e r A t t r i b u t e s . k e r n i n g M e t h o d   =   A u t o K e r n T y p e . M E T R I C S R O M A N O N L Y ; 
 
   
 
 v a r   c m y k C o l o r   =   n e w   C M Y K C o l o r ( ) ; 
 
 c m y k C o l o r . c y a n   =   5 0 ; 
 
 c m y k C o l o r . m a g e n t a   =   2 0 ; 
 
 c m y k C o l o r . y e l l o w   =   1 0 ; 
 
 c m y k C o l o r . b l a c k   =   5 ; 
 
 c h a r S t y l e . c h a r a c t e r A t t r i b u t e s . f i l l C o l o r   =   c m y k C o l o r ;   
 
   
 
 c h a r S t y l e . a p p l y T o ( t e x t R e f . t e x t R a n g e ) ;   