You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the print succeeds in producing a PDF in the cache directory, HOWEVER, no text appears, although if the text is underlined, the underlines do appear. For example:
Reloading the app and trying the print again then succeeds, I suspect because the font has by this time been successfully downloaded and cached:
NOTE: after the first reproduction of this bug, to get it to fire again requires going to the Apps Settings in Android, then Storage, then (not sure which is necessary, but both does work): clear cache and clear data.
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK
Didn't find any issues with the project!
The text was updated successfully, but these errors were encountered:
timheilman
changed the title
expo-print does not wait for <link href=... rel='stylesheet'> fonts to load prior to printing
[expo-print] first print with a font via <link href='...' rel='stylesheet'> prints blank lines
Jun 4, 2024
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
Minimal reproducible example
https://github.com/timheilman/reproduce-expo-print-first-time-failure-android.git
What platform(s) does this occur on?
Android
Did you reproduce this issue in a development build?
Yes
Summary
Calling expo-print's
printToFileAsync
, passing HTML such as in the reproduction that includes a reference like this:<link href='https://fonts.googleapis.com/css?family=Tangerine' rel='stylesheet'>
the print succeeds in producing a PDF in the cache directory, HOWEVER, no text appears, although if the text is underlined, the underlines do appear. For example:
Reloading the app and trying the print again then succeeds, I suspect because the font has by this time been successfully downloaded and cached:
NOTE: after the first reproduction of this bug, to get it to fire again requires going to the Apps Settings in Android, then Storage, then (not sure which is necessary, but both does work): clear cache and clear data.
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 13.5.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
Yarn: 1.22.21 - ~/.nvm/versions/node/v18.19.0/bin/yarn
npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.8 => 51.0.8
react: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
npmGlobalPackages:
eas-cli: 5.9.3
Expo Workflow: managed
Expo Doctor Diagnostics
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK
Didn't find any issues with the project!
The text was updated successfully, but these errors were encountered: