From 72872fa8dc8f6bc6483c1b4dfdea93b81ada7e0c Mon Sep 17 00:00:00 2001 From: Igor Zinken Date: Wed, 30 Dec 2020 11:24:11 +0100 Subject: [PATCH] Implemented Google Fonts --- README.md | 1 - .../tool-options-text/tool-options-text.vue | 92 ++++++++--- src/components/toolbox/toolbox.vue | 2 +- src/factories/document-factory.js | 2 +- src/factories/text-factory.js | 4 +- src/services/font-service.js | 148 ++++++++++++++++++ src/services/keyboard-service.js | 1 + src/services/render-service.js | 19 ++- tests/unit/factories/document-factory.spec.js | 4 +- tests/unit/factories/text-factory.spec.js | 5 +- 10 files changed, 245 insertions(+), 33 deletions(-) create mode 100644 src/services/font-service.js diff --git a/README.md b/README.md index 1578ad0..b317f04 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,6 @@ npm run lint # TODO / Roadmap -* Implement text editing using Google fonts! * Try very wide Dropbox image on MB Air with space + pan in bottom right area. Won't work. * Restoring positions of documents with positioned rotated objects is not accurate * Issue with drawing mask on mirrored content diff --git a/src/components/options-panel/tool-options-text/tool-options-text.vue b/src/components/options-panel/tool-options-text/tool-options-text.vue index 16d368d..19d9591 100644 --- a/src/components/options-panel/tool-options-text/tool-options-text.vue +++ b/src/components/options-panel/tool-options-text/tool-options-text.vue @@ -21,14 +21,22 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */