navit-project.org

forum for navit navigation tool
It is currently 21 Nov 2017, 17:06
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Scale
PostPosted: 27 Dec 2016, 14:30 
Offline

Joined: 30 Apr 2015, 16:33
Posts: 31
Hi,

I enabled scale in the internal GUI on Windows XP running on a laptop with 1280x800 resolution in full screen, and no matter what font size I tried around the default 150 which came with the xml, the number was either not visible, or multiple times duplicated and un-readable. Does anyone have an example of working scale element in a similar resolution?

Happy new year everyone!


 Profile  
 
 Post subject: Re: Scale
PostPosted: 28 Dec 2016, 06:24 
Offline
User avatar

Joined: 06 Jan 2014, 19:34
Posts: 37
Location: Franken, Bayern, Germany
I do have it running with a working scale on my Android tablet, using a customized NAVIT.XML.

The command should be this one:
Code:
<osd type="scale" x="0" y="150" w="400" h="50" font_size="300" enabled="yes" />


The entire section:
Code:
      <!-- osd items allow to position display and control items directly on top of the map: -->
      <osd type="compass" enabled="yes" x="-160" y="-212" w="160" h="212" font_size="532" osd_configuration="1"/>
        <osd type="text" label="${navigation.item.destination_length[named]}\n${navigation.item.destination_time[arrival]}" x="-160" y="0" w="160" h="106" font_size="600" osd_configuration="1"/>
        <osd type="navigation_next_turn" x="0" y="-107" w="130" h="80" icon_src="%s_wh_64_64.png" osd_configuration="1"/>
        <osd type="text" label="${navigation.item[1].length[named]}" x="0" y="-27" w="130" h="27" font_size="366" osd_configuration="1"/>
        <osd type="button" src="gui_zoom_in_64_64.png" command="zoom_in()" x="0" y="0" osd_configuration="1"/>
        <osd type="button" src="gui_zoom_out_64_64.png" command="zoom_out()" x="0" y="75" osd_configuration="1"/>
        <osd type="button" src="cursor_64_64.png" command="follow=0;set_center_cursor()" x="-80" y="150" enable_expression="follow&gt;1"/>
        <osd type="scale" x="0" y="150" w="400" h="50" font_size="300" enabled="yes" />
        <!-- Currently on ROADNAME -->
        <osd type="text" label="Strasse: ${navigation.item.street_name_systematic}" x="100" y="0" w="450" h="50" font_size="300" enabled="yes"/>
        <osd enabled="no" type="compass"/>
      <osd enabled="yes" type="text" label="${vehicle.position_speed}" x="140" y="-107" w="400" h="107" font_size="1000" osd_configuration="1"/>


Attachments:
Screenshot_2016-12-28-07-01-30.png
Screenshot_2016-12-28-07-01-30.png [ 242.4 KiB | Viewed 967 times ]
 Profile  
 
 Post subject: Re: Scale
PostPosted: 28 Dec 2016, 14:47 
Offline

Joined: 30 Apr 2015, 16:33
Posts: 31
This is what I see with the font size 150:


Attachments:
scale_duplication.png
scale_duplication.png [ 1.43 KiB | Viewed 964 times ]
 Profile  
 
 Post subject: Re: Scale
PostPosted: 28 Dec 2016, 22:25 
Offline
User avatar

Joined: 06 Jan 2014, 19:34
Posts: 37
Location: Franken, Bayern, Germany
I've also got version 0.5.0 12258 installed on Windows 7. The very same scale element looks good there, too. So it's either a problem with XP, the graphics card or driver, or the navit version.


Attachments:
navit_windows_scale.png
navit_windows_scale.png [ 142.34 KiB | Viewed 953 times ]
 Profile  
 
 Post subject: Re: Scale
PostPosted: 29 Dec 2016, 22:08 
Offline

Joined: 30 Apr 2015, 16:33
Posts: 31
Your theory is definitely plausible.
My laptop has Intel GM965 chipset with Intell 6.14.10.5218 driver.
I tried Navit with the same xml on Intel G915 chipset with 6.14.10.4020 driver and got the exact same result.
Next I installed a Geforce 6200 into this last machine and the same issue persisted. So this does sound like an XP thing. :(


 Profile  
 
 Post subject: Re: Scale
PostPosted: 30 Dec 2016, 05:56 
Offline
User avatar

Joined: 06 Jan 2014, 19:34
Posts: 37
Location: Franken, Bayern, Germany
I did start navit on XP inside a virtual machine (Windows XP mode in Windows 7), and even there the text looks okay. So I'm freshly out of ideas :-(


 Profile  
 
 Post subject: Re: Scale
PostPosted: 30 Dec 2016, 14:31 
Offline

Joined: 30 Apr 2015, 16:33
Posts: 31
I went up to 300 size font and at lest it is now large enough for the duplication not to mess up the number. It is still bold-bold, so duplication is still there, but readable. I can live with that.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS