### Question:
Span implements TextFontInfo { public Double[] getDeltaX() { List<TxtGlyph> list = glyphList(); int len = list.size(); if (len == 1) { return new Double[]{}; } Double[] res = new Double[len - 1]; for (int i = 0; i < len - 1; i++) { res[i] = list.get(i).getW(); } return res; } protected  Span();  Span(Font font, Double fontSize, String text);  Span(String text); int[] getColor(); Span setColor(int[] rgb); Span setColor(int r, int g, int b); int length(); @Override Font getFont(); Span setFont(Font font); @Override Double getFontSize(); Span setFontSize(Double fontSize); @Override Double getLetterSpacing(); Span setLetterSpacing(Double letterSpacing); boolean isBold(); Span setBold(boolean bold); boolean isItalic(); Span setItalic(boolean italic); boolean isUnderline(); Span setUnderline(boolean underline); String getText(); Span setText(String text); Boolean isIntegrity(); Span setIntegrity(Boolean integrity); List<TxtGlyph> glyphList(); Double[] getDeltaX(); Rectangle blockSize(); Span[] split(int index); Span setLinebreak(boolean linebreak); boolean hasLinebreak(); LinkedList<Span> splitLineBreak(); @Override Span clone();  }### Answer:
@Test public void getDeltaX(){ Span span = new Span("你好OFD R&W") .setFontSize(10d); Double[] deltaX = span.getDeltaX(); System.out.println(Arrays.toString(deltaX)); Double[] expect = new Double[]{ 10d, 10d, 6d, 6d, 6d, 6d, 6d, 6d }; Assertions.assertArrayEquals(expect, deltaX); }