10-07-2021, 07:59 PM
(10-07-2021, 05:04 AM)Zubersoft Wrote: Currently, when determining how to render a chord pro or text file, the dimensions of the screen are used to figure out where to wrap text. This creates differences in how the page looks on different devices. The only way to ensure that a page looks identical across devices would be to support an option where you can define the page sizes you want to use for each chord pro file (with a default for this so that you don't have to set it for each new file). So if you know your tablet is something like 2560x1600, you could just set the default page size for chord pro/text files to 2560x1600, and on other tablets that have a lower resolution, they would shrink the page to fit (the same way a PDF page would work), and on tablets with a higher resolution, they would enlarge the page to fit.
AFAICS I don't think that is the case here. Both tablets already have the same pixel dimensions (2560x1600) but the dpi differs. Font sizes are specified in 1/72" points. So a 10pt font on the S4 will take approx. 40 pixels (10/72*287=39.9) and on the S7FE 34 pixels (10/72*243=33.8). In other words, the S4 can take on average 64 characters on a line and the S7FE can take 76 characters. Likewise, the S7FE can display more lines on the page than the S4 and this causes the master/slave sync of ChordPro songs to go out of phase.
Quote:Normally, I don't apply scaling factors to chord pro pages because I want the text to be as sharp as possible.
Fonts are already subpixel rendered so I don't think scaling will change much. It's a matter of multiplying rendering matrices. (Unless you build a pixel image internally and scale the pixels...)
Quote:This approach would require pages to be scaled though, so it could slightly reduce the image quality, but there is no way around that if you want the pages to look identical on each device. I haven't had time to implement this yet (obviously), but it's high on my priority list as I know this is an important thing for users relying on chord pro files across multiple devices.
For the time being the "Developers Options > Grapics > Minimum Width" tweak works for me☺.
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).