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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -