fransschreuder / OSMScout-ubuntu

Compile libosmscout for Ubuntu Touch and create an offline routing application
Other
16 stars 10 forks source link

Street names are to small to read #14

Closed ronnietucker closed 9 years ago

ronnietucker commented 9 years ago

Not sure about the BQ 4.5, or 5, but on the Meizu MX4 the text on all the street names is waaaay too small to read, even when zoomed in. See attached screenshot.

Thanks! Ronnie

screenshot20150623_165914241

fransschreuder commented 9 years ago

I will check this, BQ E4.5 has a lower resolution, probably should take resolution into account.

ronnietucker commented 9 years ago

Cool. Thanks.

Not sure if it's the same thing with the BQ E5.

Theodin commented 9 years ago

I observed the same, but didnt find the time to see if this can be fixed by tinkering with the standard.oss file.

fransschreuder commented 9 years ago

No, you don't need to mess with standard.oss, I will add a parameter in DBThread.cpp (line 346) to set the fontSize, depending on dpi. To be fixed in next release

fransschreuder commented 9 years ago

Could you try to run 0.4.1? It should have a bigger font, depending on dpi

Theodin commented 9 years ago

Much better. Thanks!

ronnietucker commented 9 years ago

Still teeny tiny writing on the MX4 I'm afraid.

It does look readable on the screenshots (attached) but on the phone it's tiny.

Also: any chance of being able to split the Great Britain map? The large file really slows the app down.

screenshot20150624_122932803 screenshot20150624_122945772 screenshot20150624_122952670

fransschreuder commented 9 years ago

Ronnietucker: do you have ubuntu-sdk installed? If so, would you be able to download the sourcecode, play a little bit with the lines 347 "fs*=(dpi/50); //for 100DPI, multiply by 1.5" in this file? https://github.com/fransschreuder/OSMScout-ubuntu/blob/master/OSMScout/OSMScout/src/DBThread.cpp

So could you tell me which number gives you an acceptable font size on the Meizu?

fransschreuder commented 9 years ago

oh, and I am currently converting england, wales and scotland...

ronnietucker commented 9 years ago

Sorry, I've not got the Ubuntu-SDK installed. From what I can tell the screen is 418ppi (if that's any help): http://www.phonearena.com/phones/Meizu-MX4_id8884

Awesome. Having only one region should speed things up I hope.

Thanks! :)

fransschreuder commented 9 years ago

You could be of great help if you installed it and try

ronnietucker commented 9 years ago

I can give it a try. What do I need to do?

fransschreuder commented 9 years ago

First install Ubuntu-SDK https://developer.ubuntu.com/en/start/ubuntu-sdk/installing-the-sdk/ In Ubuntu-SDK install the click target "15.04" for armhf, this will take some time get yourself a copy of OSMScout sudo apt-get install git git clone https://github.com/fransschreuder/OSMScout-ubuntu.git

in Ubuntu SDK, open OSMScout-ubuntu/OSMScout/OSMScout.pro there you can edit the lines I mentioned before

ronnietucker commented 9 years ago

OK, I'll give that a go.

And how do I try the app on the phone?

fransschreuder commented 9 years ago

Just connect the usb cable and press the green "play" button.

fransschreuder commented 9 years ago

oh, on the phone you will need to enable developer mode (settings => about this phone => developer mode

ronnietucker commented 9 years ago

Uh oh. This is where I could have problems. My Kubuntu 15.05 doesn't detect my phone.

I'll keep at it though.

fransschreuder commented 9 years ago

even if it doesn't see the files, there is a good chance that the adb connection which ubuntu-sdk uses does work

fransschreuder commented 9 years ago

if it doesn't you can also build the click package, transfer it to your phone somehow and from the terminal app run: pkcon install-local --allow-untrusted osmscout.fransschreuder-.click

ronnietucker commented 9 years ago

Worst case scenario is that I transfer it over using Dropbox.

ronnietucker commented 9 years ago

Please hold the line.

I think it's downloading the whole Internet. :D

fransschreuder commented 9 years ago

haha, no it's just the northern part of the internet :)

ronnietucker commented 9 years ago

I've upped the dpi/xx to 400 and waiting to see if it'll finish building OK.

Will report back with findings...

ronnietucker commented 9 years ago

I've no idea what I'm doing, but when I click the green play button and I get: sdk

fransschreuder commented 9 years ago

you should change the dpi/50 to a smaller number in order to get bigger fonts. It appears like it doesn't see your phone yet, but if you go to the "publish" tab, you can build a click package and install it in another way

ronnietucker commented 9 years ago

Got the .click but when I try and install it (via terminal) I get:

Fatal error: [path and file] failed to install. Cannot install [path and file] signature verification error: debug: findMember: archive appears to be corrupt, fmag incorrect.

fransschreuder commented 9 years ago

hmmm I don't know. What happens if you unlock your phone, connect the usb cable and set it to developer mode? you should at a certain point get a green dot on the ubuntu logo in the SDK, where it is red now.

ronnietucker commented 9 years ago

Nope. My Kubuntu 15.04 won't pick up my MX4 for some reason. :(

fransschreuder commented 9 years ago

Did you give up?

ronnietucker commented 9 years ago

I'm clueless about developing, so I've no idea what to do next. :/

fransschreuder commented 9 years ago

Have you tried all usb ports? A colleague of mine had the issue that not all usb ports of his computer could connect to his phone

fransschreuder commented 9 years ago

it also looks like the click package got corrupted somehow during the transfer. You could try to put it on a micro SD card

fransschreuder commented 9 years ago

I can't fix your bug if you can't test it.

ronnietucker commented 9 years ago

Tried all USB ports. It seems to be a problem with kio-mtp in KDE Plasma 5. :(

I'd love to test/fix it, but I have no idea how to use Ubuntu SDK.

Could you send over a couple of different click files, each with different ppi values, and I'll let you know which one(s) look best?

fransschreuder commented 9 years ago

sudo apt-get install ubuntu-desktop Then log out and you will get Unity, that may help if it's KDE related

ronnietucker commented 9 years ago

No thanks. I'll stick with KDE.

I'll never use Ubuntu SDK as I don't know how to code. :(

fransschreuder commented 9 years ago

There's no need to code, just to change this number in order to get this bug fixed. But if you don't feel like investing more effort this bug will just stay until somebody else can test. I don't have the Meizu phone so I have to rely on somebody who does.

fransschreuder commented 9 years ago

I may want to create a settings dialog, I will include a slider for the font size, maybe you can play a little with that...

ronnietucker commented 9 years ago

Sure. I'm totally OK with testing stuff on the Meizu, but I'm hopeless with the SDK. :(

fransschreuder commented 9 years ago

You were almost there... If the phone connection works you just have to hit the green play button

Markcortbass commented 9 years ago

Can you see your phonefolders with a filemanager in (K)ubuntu? So then you know your phone is connected. If not, try the filemanager "PCMANFM". Make sure you have enabled developer mode on your phone.

Keep the screen of your phone on, and use these commands to install the .click package:

cd /home/PATH_OF_FOLDER click build . adb push PACKAGE_NAME.click /home/phablet/Downloads/ adb shell cd Downloads pkcon install-local --allow-untrusted PACKAGE_NAME.click

fransschreuder commented 9 years ago

I have just uploaded a new version, this version has a settings dialog in which you can set the font size

ronnietucker commented 9 years ago

Perfect. Thanks!