@@ 1985-1989 (lines=5) @@ | ||
1982 | // offset: 12; size: 1; character set |
|
1983 | // offset: 13; size: 1; not used |
|
1984 | // offset: 14; size: var; font name |
|
1985 | if ($this->version == self::XLS_BIFF8) { |
|
1986 | $string = self::readUnicodeStringShort(substr($recordData, 14)); |
|
1987 | } else { |
|
1988 | $string = $this->readByteStringShort(substr($recordData, 14)); |
|
1989 | } |
|
1990 | $objFont->setName($string['value']); |
|
1991 | ||
1992 | $this->objFonts[] = $objFont; |
|
@@ 2021-2026 (lines=6) @@ | ||
2018 | if (!$this->readDataOnly) { |
|
2019 | $indexCode = self::getInt2d($recordData, 0); |
|
2020 | ||
2021 | if ($this->version == self::XLS_BIFF8) { |
|
2022 | $string = self::readUnicodeStringLong(substr($recordData, 2)); |
|
2023 | } else { |
|
2024 | // BIFF7 |
|
2025 | $string = $this->readByteStringShort(substr($recordData, 2)); |
|
2026 | } |
|
2027 | ||
2028 | $formatString = $string['value']; |
|
2029 | $this->formats[$indexCode] = $formatString; |