aspose-words字体替换功能2

aspose-words字体替换功能2

  • 延续上一篇字体替换功能继续演示

In the case when FontSettings is not defined explicitly, Aspose.Words uses the default FontSettings instance. This instance is also automatically shared among documents, and can be extracted as follows:
如果 未显式定义 FontSettings ,Aspose.Words 将使用默认的FontSettings 实例。该实例也会在文档之间自动共享,并且可以按如下方式提取:

FontSettings fontSettings = FontSettings.getDefaultInstance();

In the case when FontSettings is not defined explicitly, Aspose.Words uses the default FontSettings instance. This instance is also automatically shared among documents, and can be extracted as follows:
如果您确定所有处理文档都需要相同的字体设置,那么建议设置并使用默认的 FontSettings 实例。假设您需要为所有文档使用相同的字体源。在这种情况下,您只需修改默认实例即可:

FontSettings fontSettings = FontSettings.getDefaultInstance();
fontSettings.setFontsSour

相关推荐

  1. aspose-words字体替换功能2

    2024-02-04 06:24:03       47 阅读
  2. aspose-words字体转换

    2024-02-04 06:24:03       45 阅读
  3. Aspose-words详细功能介绍

    2024-02-04 06:24:03       61 阅读
  4. aspose-words在linux上安装字体

    2024-02-04 06:24:03       49 阅读
  5. Aspose.Words简单介绍

    2024-02-04 06:24:03       52 阅读
  6. 使用aspose.Words更新表格列宽

    2024-02-04 06:24:03       48 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-04 06:24:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-04 06:24:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-04 06:24:03       82 阅读
  4. Python语言-面向对象

    2024-02-04 06:24:03       91 阅读

热门阅读

  1. GoogleTest 单元测试

    2024-02-04 06:24:03       46 阅读
  2. 打卡C语言程序设计Day16 万年历

    2024-02-04 06:24:03       50 阅读
  3. NLP自然语言处理的基本语言任务介绍

    2024-02-04 06:24:03       52 阅读
  4. 举例说明自然语言处理(NLP)技术

    2024-02-04 06:24:03       46 阅读
  5. Golang中的HTTP请求凝聚器

    2024-02-04 06:24:03       49 阅读
  6. 【QT系列】tableView

    2024-02-04 06:24:03       43 阅读
  7. docker 搭建 Seafile 集成 onlyoffice

    2024-02-04 06:24:03       59 阅读
  8. 如何确定子网地址(范例)?

    2024-02-04 06:24:03       48 阅读