Abdelrazak Younes wrote: > > - unsigned short sc = ucs4_to_ucs2(c); > + QChar ucs4_to_qchar(c);
Maybe like this: ;) + QChar sc = ucs4_to_ucs2(c); > return m.width(sc) - m.rightBearing(sc); > > Abdel. > >
Abdelrazak Younes wrote: > > - unsigned short sc = ucs4_to_ucs2(c); > + QChar ucs4_to_qchar(c);
Maybe like this: ;) + QChar sc = ucs4_to_ucs2(c); > return m.width(sc) - m.rightBearing(sc); > > Abdel. > >