Skip to content

Commit

Permalink
mview: stop creating fake unicode characters when importing fview sel…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
adrientetar committed Feb 19, 2015
1 parent 301ae66 commit 843d90d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions fontforgeexe/metricsview.c
Original file line number Diff line number Diff line change
Expand Up @@ -5304,10 +5304,16 @@ MetricsView *MetricsViewCreate(FontView *fv,SplineChar *sc,BDFFont *bdf) {
}
mv->chars[mv->clen] = NULL;

for ( cnt=0; cnt<mv->clen; ++cnt )
pt = utf8_idpb(pt,
mv->chars[cnt]->unicodeenc==-1?
MVFakeUnicodeOfSc(mv,mv->chars[cnt]): mv->chars[cnt]->unicodeenc,0);
for ( cnt=0; cnt<mv->clen; ++cnt ) {
if ( mv->chars[cnt]->unicodeenc != -1 )
pt = utf8_idpb(pt,mv->chars[cnt]->unicodeenc,0);
else {
*pt = '/'; pt++;
strcpy(pt, mv->chars[cnt]->name);
pt += strlen(mv->chars[cnt]->name);
*pt = ' '; pt++;
}
}
*pt = '\0';

memset(&gd,0,sizeof(gd));
Expand Down

0 comments on commit 843d90d

Please sign in to comment.