Graphics API: enable paint text alignment, closes #320

This commit is contained in:
Emux
2017-03-04 18:15:09 +02:00
parent 28961caa79
commit d1ce52ef52
5 changed files with 17 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright 2016 Longri
* Copyright 2016 devemux86
* Copyright 2016-2017 devemux86
* Copyright 2017 nebular
*
* This program is free software: you can redistribute it and/or modify it under the
@@ -65,6 +65,7 @@ public class IosPaint implements Paint {
private static final String DEFAULT_FONT_NAME_BOLD = UIFont.getSystemFont(1, UIFontWeight.Bold).getFontDescriptor().getPostscriptName();
private static final String DEFAULT_FONT_NAME_ITALIC = UIFont.getItalicSystemFont(1).getFontDescriptor().getPostscriptName();
private Align align;
private final NSAttributedStringAttributes attribs = new NSAttributedStringAttributes();
private CGLineCap cap = CGLineCap.Butt;
private CGLineJoin join = CGLineJoin.Miter;
@@ -147,8 +148,8 @@ public class IosPaint implements Paint {
@Override
public void setTextAlign(Align align) {
// Align text in text layer
//this.align = align;
// TODO never read
this.align = align;
}
@Override