fontmetrics - Font Metrics in C -
i wanted know if there library in c available calculating font metrics (basically wanted know width of string of particular font). qt has qfontmetrics. there way can similar data in c.
i wouldn't use freetype, unless on system uses x graphics display. if on windows, use windows api font metrics information , on mac use whatever cocoa provides.
it might if told trying do.
edit: since output of library intended consumed particular gui app, want use same gui library font metrics information app using. better have app provide metrics information library, or callback method can provide information. library doesn't have know how font metrics derived, reducing unnecessary dependency. means can use qt (c++) in gui app, still write library in c , not have figure out way call c++ c, difficult, if trying make cross-platform.
Comments
Post a Comment