Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
paintingapage [2015/04/02 14:59]
christian
paintingapage [2016/09/24 08:17]
dokuadmin ↷ Page moved from pdf:paintingapage to paintingapage
Line 32: Line 32:
     renderer showString: 'Hello World']].     renderer showString: 'Hello World']].
 </code> </code>
-{{example01helloworld.pdf}} See the class method ''example01HelloWorld'' in class ''Document''.+{{demo01_HelloWorld.pdf}} See the class method ''demo01_HelloWorld'' in class ''Document''.
  
 You notice that I did not use the font ID **''/F1''** but the font directly (referenced as the global #Helvetica). ''renderer **setFont:**'' takes care of that and puts the font into the resources and assigns it to an internal name which is used in the content stream. This mechanism works for all resource types so that the programmer can always use the appropriate object directly and never needs to care about the internal IDs. You notice that I did not use the font ID **''/F1''** but the font directly (referenced as the global #Helvetica). ''renderer **setFont:**'' takes care of that and puts the font into the resources and assigns it to an internal name which is used in the content stream. This mechanism works for all resource types so that the programmer can always use the appropriate object directly and never needs to care about the internal IDs.
  • paintingapage.txt
  • Last modified: 2017/10/05 12:54
  • by christian