Recent

Author Topic: Editor & font ??  (Read 13646 times)

anta40

  • New Member
  • *
  • Posts: 28
Editor & font ??
« on: July 08, 2007, 08:02:33 am »
Recently, I build Lazarus 0.9.22-1 using command line FPC 2.1.4 on XP.
I notice that if I use font any other than Bitstream Vera Mono, the distance between fonts is pretty wide. Example :

Verdana
(http://img181.imagevenue.com/loc230/th_74176_verdana_122_230lo.jpg)

Courier New
(http://img15.imagevenue.com/loc970/th_74177_couriernew_122_970lo.jpg)

Bitstream Vera Mono does the job nicely
(http://img182.imagevenue.com/loc194/th_74182_bsm_122_194lo.jpg)

Any suggestion ?

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: Editor & font ??
« Reply #1 on: July 08, 2007, 06:09:21 pm »
SynEdit supports monospace fonts only.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2663
RE: Editor & font ??
« Reply #2 on: July 09, 2007, 11:25:05 am »
Its not really a synedit problem, but more generic. For varying width fonts the concept of columns is useless.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

anta40

  • New Member
  • *
  • Posts: 28
Editor & font ??
« Reply #3 on: July 09, 2007, 07:53:54 pm »
Ah I see.
Bitstream Vera Mono is pretty nice actually, but its right brace is a bit slashed.
Do you know any other font which as nice as Bitstream Vera Mono ?
BTW, why don't Lazarus use Scintilla, not SynEdit ?  :lol:

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2663
Editor & font ??
« Reply #4 on: July 10, 2007, 04:42:10 pm »
since when lazarus started only the predecessor of SynEdit was available.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Editor & font ??
« Reply #5 on: July 10, 2007, 05:06:41 pm »
Quote from: "anta40"
BTW, why don't Lazarus use Scintilla, not SynEdit ?  :lol:


I googled and Scintilla doesn't use LCL or VCL as a base and is written in c++

I just doesn't fit into what we expect for Lazarus. By using a component based on LCL we make sure it runs everywhere that LCL runs, not to mention we add value to LCL itself by having a good component for it.

N-drew

  • Newbie
  • Posts: 4
Editor & font ??
« Reply #6 on: September 24, 2007, 10:09:35 am »
Your problem is better than mine... You can see the fonts.
Watch THIS!
Do you see? Te cursor is next to the last 'f', but the 'f' isn't there.
But I'd selected a font HERE, and it jumped to the cursor.
I've tried many options, restart my computer, many fonts, etc., the original fonts too, but I couldn't find the solution.
Can anyone help me?
Many thanx!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Editor & font ??
« Reply #7 on: September 24, 2007, 10:54:06 am »
N-drew, what font do you use? It doesn't look like a fixed width font.

bee

  • Sr. Member
  • ****
  • Posts: 393
Editor & font ??
« Reply #8 on: September 24, 2007, 11:00:06 am »
Lazarus editor is a program/code editor, not a word processor. Please use monospace fonts only, not just on Lazarus, but also on any other program/code editors. Some programmers even prefer bitmap font (fixedsys, courier, etc) for better code clearance. Monospace fonts is just good for programmers, especially for their eyes. That's why SynEdit only supports monospace fonts in the first place. ;)
-Bee-

A long time pascal lover.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Editor & font ??
« Reply #9 on: September 24, 2007, 11:05:22 am »
There are ideas to add support for variable width fonts, but don't expect this soon: http://www.freepascal.org/mantis/view.php?id=9650

N-drew

  • Newbie
  • Posts: 4
Editor & font ??
« Reply #10 on: September 24, 2007, 11:18:21 am »
Thanx, the fixed fonts work.
This font on the pictures isn't monospace.

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Editor & font ??
« Reply #11 on: September 24, 2007, 02:09:07 pm »
Without Fixed font we get crazy if write Right To Left language, I prefer not to use variable width fonts in the future.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Editor & font ??
« Reply #12 on: September 24, 2007, 02:11:20 pm »
Of course, you won't be forced to do so :-).

 

TinyPortal © 2005-2018