Variable width font GLCD - 가변 폭 폰트 출력 GLCD


원저자 사이트

http://www.mikrocontroller.net/topic/108269


수정한것

Proteus에서는 직선이 제대로 동작하지 않으나 실제 GLCD에서는 정상동작함


원 소스

mylcd.zip


아래 참조하여 Proteus에서도 'line' 함수가 정상 동작하도록 수정

// do NOT use 'BRESENHAM' as it cause 'line' malfunction in proteus

#define NO_BRESENHAM // if you only use horizontal or vertical lines (or rects)


BRESENHAM 사용시 직선출력 부분에서 오류 

(단 Proteus에서만 문제이고 실제 GLCD에서는 정상임)


몇가지 수정한 것

mylcd_x.zip


추가 함수들 ....

라인/원/각진 상자/비트맵


add_func.txt



그리고 다른 정보가 추가된 폰트데이터가 필요함

Font Creator 필요

자바

http://www.java.com/ko/download/index.jsp

폰트 생성

http://extremeelectronics.co.in/avr-tutorials/handling-text-and-fonts-in-progfx/

First you will need a tool that will help convert any Windows Font to ProGFX compatible format. Thanks to Mr. F. Maximilian Thiele we have a great tool called Font Creator. You can download it from here.

From file menu select "New Font" , and configure the New Font Dialog as follows.
  • Name = Arial12
  • Import Font = Arial
  • Size =12

And click ok.

From Export Menu Select "Export Font", Give it the name "Arial12.h" while saving.

posted by 털보네i
: