• R/O
  • SSH
  • HTTPS

copper: Commit


Commit MetaInfo

Revision1600 (tree)
Time2020-04-16 15:56:34
Authormiyabe

Log Message

test

Change Summary

Incremental Difference

--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/ua/image/ImageUserAgent.java (revision 1599)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/ua/image/ImageUserAgent.java (revision 1600)
@@ -40,11 +40,11 @@
4040 public class ImageUserAgent extends AbstractUserAgent implements RandomResultUserAgent {
4141 private Results results, xresults;
4242
43- private FontManagerImpl fontManager;
43+ protected FontManagerImpl fontManager;
4444
45- private BufferedImage image;
45+ protected BufferedImage image;
4646
47- private int page = 0;
47+ protected int page = 0;
4848
4949 public void setResults(Results results) {
5050 this.results = results;
--- copper/trunk/sakae/sakae-core/src/main/java/jp/cssj/sakae/font/Font.java (revision 1599)
+++ copper/trunk/sakae/sakae-core/src/main/java/jp/cssj/sakae/font/Font.java (revision 1600)
@@ -36,7 +36,7 @@
3636 * @param ivs
3737 * @return
3838 */
39- public int toGID(int c, int ivs);
39+ public int toGID(int c, int ivs);リガチャで実装できないか
4040
4141 /**
4242 * グリフの進行方向の進行幅を返します。
--- copper/trunk/sakae/sakae-pdf/src/main/java/jp/cssj/sakae/font/emoji/EmojiFont.java (revision 1599)
+++ copper/trunk/sakae/sakae-pdf/src/main/java/jp/cssj/sakae/font/emoji/EmojiFont.java (revision 1600)
@@ -36,10 +36,8 @@
3636 class EmojiFont implements ImageFont {
3737 private static final long serialVersionUID = 2L;
3838
39- protected static final Map<Integer, String> fgidToCode;
4039 protected static final Map<String, Integer> codeToFgid;
4140 static {
42- Map<Integer, String> gtoc = new HashMap<Integer, String>();
4341 Map<String, Integer> ctog = new HashMap<String, Integer>();
4442 try (BufferedReader in = new BufferedReader(
4543 new InputStreamReader(EmojiFontSource.class.getResourceAsStream("INDEX"), "ISO8859-1"))) {
@@ -46,13 +44,11 @@
4644 int gid = 0;
4745 for (String line = in.readLine(); line != null; line = in.readLine()) {
4846 ++gid;
49- gtoc.put(gid, line);
5047 ctog.put(line, gid);
5148 }
5249 } catch (Exception e) {
5350 throw new RuntimeException(e);
5451 }
55- fgidToCode = Collections.unmodifiableMap(gtoc);
5652 codeToFgid = Collections.unmodifiableMap(ctog);
5753 }
5854 private int glyphCount = 1;
Show on old repository browser