Code Monkey home page Code Monkey logo

Comments (8)

ichpuchtli avatar ichpuchtli commented on July 4, 2024

DocX is yuuge in china.

from docx.

PrzemyslawKlys avatar PrzemyslawKlys commented on July 4, 2024

@CPonty feel free to submit pull request :-)

from docx.

PrzemyslawKlys avatar PrzemyslawKlys commented on July 4, 2024

If possible please create a test case as well with chinese document or so.

from docx.

neights avatar neights commented on July 4, 2024

@ichpuchtli ah........ what is yuuge??? yuuge.......
DocX is very popular in China
I used it in a lot of projects to generate docx files
so cool......

from docx.

neights avatar neights commented on July 4, 2024

@CPonty i'm ice ,Thanks for your reply
this is my new GitHub Account
After study together

from docx.

ichpuchtli avatar ichpuchtli commented on July 4, 2024

@neights don't worry yuuge is an joke with my colleague @CPonty. I'm sure DocX is huge in china. I think @CPonty should make a pull request.

from docx.

wuchao288 avatar wuchao288 commented on July 4, 2024

根据 CPonty 的指导, DocX设置中文字体无效的修正方法,可以把作者的项目下载修改后再编译,期待作者nuget上更新.
I changed the code like this

    public Paragraph Font(FontFamily fontFamily)
        {
            ApplyTextFormattingProperty
            (
                XName.Get("rFonts", DocX.w.NamespaceName),
                string.Empty,
                new[] 
                {
                    new XAttribute(XName.Get("eastAsia", DocX.w.NamespaceName), fontFamily.Name),
                    new XAttribute(XName.Get("ascii", DocX.w.NamespaceName), fontFamily.Name),
                    new XAttribute(XName.Get("hAnsi", DocX.w.NamespaceName), fontFamily.Name), 
                    new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name)
                }
            );
            return this;
        }
        //Paragraph p2 = document.InsertParagraph("参考行程", false);
        //p2.FontSize(20).Font(new FontFamily("黑体"));

@CPonty thank you!

from docx.

PrzemyslawKlys avatar PrzemyslawKlys commented on July 4, 2024

I am not sure why you guys couldn't commit this change as normal change. Added and closin this topic.

from docx.

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.