MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ToFcString

Function ToFcString

src/os/unix/font_unix.cpp:32–35  ·  view source on GitHub ↗

* Get a FontConfig-style string from a std::string. * @param str String to be passed to FontConfig. * @return FontConfig-style string. */

Source from the content-addressed store, hash-verified

30 * @return FontConfig-style string.
31 */
32static const FcChar8 *ToFcString(const std::string &str)
33{
34 return reinterpret_cast<const FcChar8 *>(str.c_str());
35}
36
37/**
38 * Get a C-style string from a FontConfig-style string.

Callers 2

GetFontByFaceNameFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected