Files
ViewDesignEngine/cmake/opennurbs_dwrite_stub.cpp
hm eb2e064be7
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
feat(3dm): optional openNURBS native import
2026-10-28 02:10:37 +08:00

19 lines
801 B
C++

// MinGW 8.1 lacks the newer DirectWrite interfaces used by openNURBS font rendering.
// 3DM geometry import never requests glyph outlines; provide link-time stubs.
#include "opennurbs.h"
bool ON_WindowsDWriteGetGlyphMetrics(const ON_FontGlyph*, ON_TextBox&) { return false; }
bool ON_WindowsDWriteGetFontMetrics(const ON_Font*, ON_FontMetrics&) { return false; }
bool ON_WindowsDWriteGetGlyphOutline(const ON_FontGlyph*, ON_OutlineFigure::Type, ON_Outline&) { return false; }
ON_Font::Stretch ON_Font::FontStretchFromDWriteStretch(unsigned int, ON_Font::Stretch fallback) {
return fallback;
}
unsigned int ON_Font::GetInstalledWindowsDWriteFonts(
const wchar_t*, bool, bool, ON_SimpleArray<ON_WindowsDWriteFontInformation>&) {
return 0;
}
extern "C" int fcloseall(void) { return 0; }