| 283 | } |
| 284 | |
| 285 | float CrossPointSettings::getReaderLineCompression() const { |
| 286 | // SD card fonts use same compression as Bookerly (the most neutral values) |
| 287 | if (sdFontFamilyName[0] != '\0') { |
| 288 | switch (lineSpacing) { |
| 289 | case TIGHT: |
| 290 | return 0.95f; |
| 291 | case NORMAL: |
| 292 | default: |
| 293 | return 1.0f; |
| 294 | case WIDE: |
| 295 | return 1.1f; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | switch (fontFamily) { |
| 300 | case NOTOSERIF: |
| 301 | default: |
| 302 | switch (lineSpacing) { |
| 303 | case TIGHT: |
| 304 | return 0.95f; |
| 305 | case NORMAL: |
| 306 | default: |
| 307 | return 1.0f; |
| 308 | case WIDE: |
| 309 | return 1.1f; |
| 310 | } |
| 311 | case NOTOSANS: |
| 312 | switch (lineSpacing) { |
| 313 | case TIGHT: |
| 314 | return 0.90f; |
| 315 | case NORMAL: |
| 316 | default: |
| 317 | return 0.95f; |
| 318 | case WIDE: |
| 319 | return 1.0f; |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | unsigned long CrossPointSettings::getSleepTimeoutMs() const { |
| 325 | if (sleepTimeoutMinutes >= SLEEP_TIMEOUT_NEVER_MINUTES) return 0UL; |
no outgoing calls
no test coverage detected