框架本地无法运行,修复尝试
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of PHPWord - A pure PHP library for reading and writing
|
||||
* word processing documents.
|
||||
@@ -30,7 +29,7 @@ class Settings
|
||||
*/
|
||||
public const ZIPARCHIVE = 'ZipArchive';
|
||||
public const PCLZIP = 'PclZip';
|
||||
public const OLD_LIB = Shared\ZipArchive::class; // @deprecated 0.11
|
||||
public const OLD_LIB = \PhpOffice\PhpWord\Shared\ZipArchive::class; // @deprecated 0.11
|
||||
|
||||
/**
|
||||
* PDF rendering libraries.
|
||||
@@ -118,20 +117,6 @@ class Settings
|
||||
*/
|
||||
private static $defaultFontName = self::DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Default asian font name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private static $defaultAsianFontName = self::DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Default font color.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private static $defaultFontColor = self::DEFAULT_FONT_COLOR;
|
||||
|
||||
/**
|
||||
* Default font size.
|
||||
*
|
||||
@@ -369,14 +354,6 @@ class Settings
|
||||
return self::$defaultFontName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default font name.
|
||||
*/
|
||||
public static function getDefaultAsianFontName(): string
|
||||
{
|
||||
return self::$defaultAsianFontName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default font name.
|
||||
*/
|
||||
@@ -391,39 +368,6 @@ class Settings
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function setDefaultAsianFontName(string $value): bool
|
||||
{
|
||||
if (trim($value) !== '') {
|
||||
self::$defaultAsianFontName = $value;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default font color.
|
||||
*/
|
||||
public static function getDefaultFontColor(): string
|
||||
{
|
||||
return self::$defaultFontColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default font color.
|
||||
*/
|
||||
public static function setDefaultFontColor(string $value): bool
|
||||
{
|
||||
if (trim($value) !== '') {
|
||||
self::$defaultFontColor = $value;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default font size.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user