Closed videosmith closed 2 years ago
I'm having trouble replicating this issue... What font are you using for the bold text in your document? Also, what format is the document saved as?
The default font for your app on RPi/Debian. I will check are reply. HTML Would uploading a project help?
It might. If you could also upload before and after pictures, that too could help.
Pic 1. Your default script Pic 2. Bold attribute added to selected text, saved as HTML file Pic 3. Reloaded HTML file.
Interestingly, if you open the HTML file in Writer or a browser, the Bold Formatting is retained correctly... perhaps a setting on my install?
When you go into QPrompt's about page, what version of QPrompt, KDE Frameworks, and Qt do you see?
Here's an example:
Also, could you re-upload the HTML. The zip file seems not to contain the file.
I ask for all this because I'm still unable to replicate the issue, even on my Raspberry Pi the bold formatting is preserved when saving the document as HTML.
Font is Deja vu
Hello @videosmith,
I've replicated every single factor I can think of and am still unable to replicate this issue. This leads me to believe there's nothing wrong with QPrompt, nor with the version of Qt and KDE Frameworks shipped with Raspberry Pi OS, nor the DejaVu font...
The only possibility left in my mind is one of the installers may have been corrupted at some point. This is unlikely, but possible nonetheless. A bit may have flipped during transit while downloading, or while flashing the SD Card or copying QPrompt's deb package from one medium to another. The only way to be certain that your downloads are fine is to perform a checksum and compare the output to checksums provided by the people providing these files.
I recommend that you run a checksum on your downloads to ensure the integrity of each. Here are the checksum values to QPrompt 1.0.0's arm64 deb installer. You can find the checksum values for Raspberry Pi OS at their ISO download page, under "Show SHA256 file integrity hash". I used a program called gtkhash
to generate these hashes from within my Raspberry Pi.
# File: qprompt-1.0.0-Linux-aarch64.deb
# MD5
48fc0d8065c8469e674103508e332578
# SHA1
06b74b3302b1e7df38fba8fd7eaa087ac35ace65
# SHA256
1540364b2289f6b414c121ed820ea1fc4ac4cf8e51b7c747aca47046c0529e4c
I believe you were correct, I wiped the drive an re-installed everything using Raspberry Pi 64 bit OS. The Bold attribute now reloads with the saved file as expected. Appreciate the guidance.
One curiosity, when launching QPrompt from a Terminal window, several notifications appear, are these something to be concerned over?
You're welcome!
There's nothing to be concerned about. Most of those messages are warnings indicating that that the Kirigami framework is performing certain actions (use of QML Connections, among other things) in old fashioned ways, and that unless it starts doing things in more modern ways, said code will break when using future versions of the Qt Framework.
Most of the Kirigami framework issues are gone in its most current version, at the time of writing.
There are also warnings regarding a few of mistakes in my code:
qrc:/Prompter.qml:459:13: QML TextArea: Binding loop detected for property "font.letterSpacing"
<Unknown File>: QML QQuickAnchors*: Binding loop detected for property "bottomMargin"
QVariant::load: unable to load type 1111.
Bold formatting of text not persistent when script saved/reloaded
Steps to Reproduce
Expected behavior Script should retain Bold attributes as it does with color, underscore, italics, etc.
Detailed description of display configuration (if applicable) Raspberry Pi 4, single HDMI monitor mode, 720p
Device information