Git Product home page Git Product logo

Comments (7)

Sayi avatar Sayi commented on May 14, 2024

@openmartin
这个版本没有,下一个版本加上这个功能。
下一个小版本最快这周发。

from poi-tl.

openmartin avatar openmartin commented on May 14, 2024

非常感谢

from poi-tl.

openmartin avatar openmartin commented on May 14, 2024

我摸索到了怎么设置列表编号的颜色,字体,缩进,希望能有点帮助

cTLvl.addNewRPr().addNewColor().setVal("640000"); // 颜色
cTLvl.addNewRPr().addNewRFonts().setAscii("Verdana"); // 字体
cTLvl.addNewRPr().addNewRFonts().setHAnsi("Verdana"); // 字体
cTLvl.addNewRPr().addNewSz().setVal(BigInteger.valueOf(16)); // 字体大小

// 列表编号后面接的文字的缩进
CTInd cTInd = cTLvl.addNewPPr().addNewInd();
cTInd.setHanging(BigInteger.valueOf(420));
cTInd.setLeft(BigInteger.valueOf(420));

from poi-tl.

Sayi avatar Sayi commented on May 14, 2024

@openmartin
考虑个更通用的场景:

是希望改变所有的编号的颜色、字体,还是改变指定某一个编号的颜色、字体?

比如1、2、3、4只想改变2的颜色字体,有这个场景吗?

from poi-tl.

openmartin avatar openmartin commented on May 14, 2024

我目前应用的场景没有这种情况,我目前的需求是把所有的编号都变成红色方块

from poi-tl.

Sayi avatar Sayi commented on May 14, 2024

1.1.0版本已发布。

<dependency>
  <groupId>com.deepoove</groupId>
  <artifactId>poi-tl</artifactId>
  <version>1.1.0</version>
</dependency>

具体设置编号样式代码示例:

Style fmtStyle = new Style("f44336");
put("custom_style", new NumbericRenderData(Pair.of(STNumberFormat.BULLET, "■"), fmtStyle, new ArrayList<TextRenderData>() {
    {
        add(new TextRenderData("df2d4f", "Deeply in love with the things you love, just deepoove."));
        add(new TextRenderData("Deeply in love with the things you love, just deepoove."));
        add(new TextRenderData("5285c5", "Deeply in love with the things you love, just deepoove."));
    }
}));

设置编号样式的源码参见StyleUtils.styleRpr

from poi-tl.

openmartin avatar openmartin commented on May 14, 2024

非常感谢

from poi-tl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.