添加注释文字

#include <uf_ugfont.h>
#include <uf_drf.h>

 

//查找字体
int index=-1;
tag_t s_part_tag=UF_PART_ask_display_part();
tag_t s_obj=NULL_TAG;
UF_OBJ_cycle_objs_in_part(s_part_tag,UF_font_table_type,&s_obj);
while(s_obj!=NULL_TAG)
{

UF_CALL(UF_UGFONT_add_font(s_obj,&index,"chinesef"));

 


UF_OBJ_cycle_objs_in_part(s_part_tag,UF_font_table_type,&s_obj);
}

 


char* text_string [1]={""};
char str[133]="";
sprintf(str,"<F%d>汉字ABC<F>",index); //

text_string[0]=str;
double note_origin[3]={0,0,0};
tag_t note_tag=NULL_TAG;
UF_CALL(UF_DRF_create_note(1,text_string,note_origin,0,&note_tag));

posted @ 2023-02-18 14:06  firetuo  阅读(61)  评论(0)    收藏  举报