Lines Matching refs:fv

46     FontViewBase *fv = gcalloc(1,sizeof(FontViewBase));  in _FontViewBaseCreate()  local
49 fv->nextsame = sf->fv; in _FontViewBaseCreate()
50 fv->active_layer = ly_fore; in _FontViewBaseCreate()
51 sf->fv = fv; in _FontViewBaseCreate()
53 sf->mm->normal->fv = fv; in _FontViewBaseCreate()
55 sf->mm->instances[i]->fv = fv; in _FontViewBaseCreate()
58 fv->sf = sf; in _FontViewBaseCreate()
59 if ( fv->nextsame!=NULL ) { in _FontViewBaseCreate()
60 fv->map = EncMapCopy(fv->nextsame->map); in _FontViewBaseCreate()
61 fv->normal = fv->nextsame->normal==NULL ? NULL : EncMapCopy(fv->nextsame->normal); in _FontViewBaseCreate()
63 fv->normal = sf->map; in _FontViewBaseCreate()
64 fv->map = CompactEncMap(EncMapCopy(sf->map),sf); in _FontViewBaseCreate()
66 fv->map = sf->map; in _FontViewBaseCreate()
67 fv->normal = NULL; in _FontViewBaseCreate()
70 fv->cidmaster = sf; in _FontViewBaseCreate()
72 sf->subfonts[i]->fv = fv; in _FontViewBaseCreate()
75 fv->sf = sf->subfonts[i]; in _FontViewBaseCreate()
78 if ( fv->sf==NULL ) in _FontViewBaseCreate()
79 fv->sf = sf->subfonts[0]; in _FontViewBaseCreate()
80 sf = fv->sf; in _FontViewBaseCreate()
81 if ( fv->nextsame==NULL ) EncMapFree(sf->map); in _FontViewBaseCreate()
82 fv->map = EncMap1to1(sf->glyphcnt); in _FontViewBaseCreate()
84 fv->selected = gcalloc(fv->map->enccount,sizeof(char)); in _FontViewBaseCreate()
87 PyFF_InitFontHook(fv); in _FontViewBaseCreate()
89 return( fv ); in _FontViewBaseCreate()
93 FontViewBase *fv = _FontViewBaseCreate(sf); in FontViewBase_Create() local
95 return( fv ); in FontViewBase_Create()
98 static FontViewBase *FontViewBase_Append(FontViewBase *fv) { in FontViewBase_Append() argument
103 if ( fv_list==NULL ) fv_list = fv; in FontViewBase_Append()
106 test->next = fv; in FontViewBase_Append()
108 return( fv ); in FontViewBase_Append()
111 static void FontViewBase_Free(FontViewBase *fv) { in FontViewBase_Free() argument
115 if ( fv->nextsame==NULL && fv->sf->fv==fv ) { in FontViewBase_Free()
116 EncMapFree(fv->map); in FontViewBase_Free()
117 SplineFontFree(fv->cidmaster?fv->cidmaster:fv->sf); in FontViewBase_Free()
119 EncMapFree(fv->map); in FontViewBase_Free()
120 if ( fv->sf->fv==fv ) { in FontViewBase_Free()
121 if ( fv->cidmaster==NULL ) in FontViewBase_Free()
122 fv->sf->fv = fv->nextsame; in FontViewBase_Free()
124 fv->cidmaster->fv = fv->nextsame; in FontViewBase_Free()
125 for ( i=0; i<fv->cidmaster->subfontcnt; ++i ) in FontViewBase_Free()
126 fv->cidmaster->subfonts[i]->fv = fv->nextsame; in FontViewBase_Free()
129 for ( prev = fv->sf->fv; prev->nextsame!=fv; prev=prev->nextsame ); in FontViewBase_Free()
130 prev->nextsame = fv->nextsame; in FontViewBase_Free()
134 DictionaryFree(fv->fontvars); in FontViewBase_Free()
135 free(fv->fontvars); in FontViewBase_Free()
137 free(fv->selected); in FontViewBase_Free()
139 PyFF_FreeFV(fv); in FontViewBase_Free()
141 free(fv); in FontViewBase_Free()
144 static int FontViewBaseWinInfo(FontViewBase *fv, int *cc, int *rc) { in FontViewBaseWinInfo() argument
145 (void)fv; in FontViewBaseWinInfo()
159 FontViewBase *fv; in FontIsActive() local
161 for ( fv=fv_list; fv!=NULL; fv=fv->next ) in FontIsActive()
162 if ( fv->sf == sf ) in FontIsActive()
170 FontViewBase *fv; in FontOfFilename() local
173 for ( fv=fv_list; fv!=NULL ; fv=fv->next ) { in FontOfFilename()
174 if ( fv->sf->filename!=NULL && strcmp(fv->sf->filename,buffer)==0 ) in FontOfFilename()
175 return( fv->sf ); in FontOfFilename()
176 else if ( fv->sf->origname!=NULL && strcmp(fv->sf->origname,buffer)==0 ) in FontOfFilename()
177 return( fv->sf ); in FontOfFilename()
182 static void FVExtraEncSlots(FontViewBase *fv, int encmax) { in FVExtraEncSlots() argument
183 (void)fv; in FVExtraEncSlots()
187 static void FontViewBase_Close(FontViewBase *fv) { in FontViewBase_Close() argument
188 if ( fv_list==fv ) in FontViewBase_Close()
189 fv_list = fv->next; in FontViewBase_Close()
192 for ( n=fv_list; n->next!=fv; n=n->next ); in FontViewBase_Close()
193 n->next = fv->next; in FontViewBase_Close()
195 FontViewFree(fv); in FontViewBase_Close()
198 static void FVB_ChangeDisplayBitmap(FontViewBase *fv, BDFFont *bdf) { in FVB_ChangeDisplayBitmap() argument
199 fv->active_bitmap = bdf; in FVB_ChangeDisplayBitmap()
202 static void FVB_ShowFilled(FontViewBase *fv) { in FVB_ShowFilled() argument
203 fv->active_bitmap = NULL; in FVB_ShowFilled()
211 static void FVB_DeselectAll(FontViewBase *fv) { in FVB_DeselectAll() argument
212 memset(fv->selected,0,fv->map->encmax); in FVB_DeselectAll()
215 static void FVB_DisplayChar(FontViewBase *fv,int gid) { in FVB_DisplayChar() argument
216 (void)fv; in FVB_DisplayChar()