CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

GLCD Fonts Problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
prisim



Joined: 07 Nov 2013
Posts: 6

View user's profile Send private message

GLCD Fonts Problem
PostPosted: Tue Apr 21, 2015 10:08 pm     Reply with quote

Hello,

I have problem here with fonts on GLCD, i am using built in graphics.h and HDM64GS12.c for my KS0108 base GLCD.

Everything is in perfect order but the font! I convert the ARIAL font with mikroe font converter, but the font is shown vertically on GLCD. I also used many other font generators (the dot factor, MCU font generator etc..). But every time when i want to add new font array my font is shown vertically on GLCD.

Please say something regarding this matter.

My main program code.
Code:
#include <16F877A.h>
#device *=16
#include <stdlib.h>
#include <string.h>
#USE DELAY (CLOCK=4000000)
//#include <24512.c> //for the atmel eeprom
#include <math.h>
#include <C:\Users\mPc\Desktop\New folder (2)\HDM64GS12.c>
#include <C:\Users\mPc\Desktop\New folder (2)\GRAPHICS.c>

#fuses  HS,NOWDT,NOLVP

char text[]="A";


void main()
{
glcd_init(ON);

delay_ms(200);

glcd_text57(15,5,text,2,ON);

}


temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 22, 2015 6:44 am     Reply with quote

you could rearrange the X and Y of the array..


array(X,Y) to array(Y,X)



Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Wed Apr 22, 2015 7:26 am     Reply with quote

Start with the question does it do this on the real display?.

On Isis, you can specify where the 0,0 point of the graphic display is, and the direction of X & Y, when you set it up. What you are showing is what you would see if this was set to be at the bottom left corner, with X running vertically, instead of at the top left, with X running to the right.

You may well just have Isis setup wrong.

The font creator program does allow you to output the fonts in any orientation. Again this could be set wrong.
prisim



Joined: 07 Nov 2013
Posts: 6

View user's profile Send private message

PostPosted: Wed Apr 22, 2015 10:07 pm     Reply with quote

Thanks both of you for replies,

I am confused in this , that if there is a problem with X or Y orientation in ISIS or in ARRAY, then why the same font working well with MIKROE glcd routine ? it shows good on ISIS too.

And could you please tell me how to change the X and Y in mikroe font creator. or any other.
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Thu Apr 23, 2015 12:48 am     Reply with quote

Start at the beginning. You left out the critical bit of data that the sample font worked.... Aaargh!. Sad

Now you need to understand that displays will exist that are laid out side on, or even inverted (this is why Isis allows these to be changed). So if your display was displaying the fonts all sideways, I'd immediately say 'Isis setting'.

However if the sample font works, then it becomes (of course) a Microe setting.

You are using the wrong format for the output. You need to be selecting 'Export for TFT and new GLCD', as the output format. The different format options control the size of the data output, and the orientation.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group