summaryrefslogtreecommitdiff
path: root/vcl/glyphy/demo.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-11-19 11:46:03 +0200
committerTor Lillqvist <tml@collabora.com>2015-11-19 14:05:31 +0200
commita12454b390a718e982461255491c0f26a5a3bbca (patch)
tree16a99b5a6f4d795d89a53329fa8444b5eed91a49 /vcl/glyphy/demo.cxx
parent2afd347f508a3e30dd7065061c48f4f738e17934 (diff)
Use GLyphy for text on Windows (broken)
Work in progress. Produces visible text in some cases, but not nearly all. The text that is visible is roughly in the right place and of the right size, but horribly ugly. Compare to glyphy-demo, which does produce beautiful text, so the problem is not in the GLyphy code but in the way we use it. Include sources from GLyphy's "demo" directory (with only slight modifications to avoid unconditional debug output) and use that "demo" API from vcl. The changes to existing vcl code are all in one place, in the winlayout.cxx file. Change-Id: I69cce5d66db534c6f4c1ab85d520b6090baf8fe0
Diffstat (limited to 'vcl/glyphy/demo.cxx')
-rwxr-xr-xvcl/glyphy/demo.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcl/glyphy/demo.cxx b/vcl/glyphy/demo.cxx
new file mode 100755
index 000000000000..7f4f12adc74e
--- /dev/null
+++ b/vcl/glyphy/demo.cxx
@@ -0,0 +1,19 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include <prewin.h>
+#include <postwin.h>
+
+namespace GLyphyDemo {
+#include "demo/demo-atlas.cc"
+#include "demo/demo-buffer.cc"
+#include "demo/demo-font.cc"
+#include "demo/demo-shader.cc"
+#include "demo/matrix4x4.c"
+}