[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2985: cannot input any search string in cmbSearch in zh_cn.UTF8, replace also


http://gambaswiki.org/bugtracker/edit?object=BUG.2985&from=L21haW4-

Comment #4 by li XIAOKONG:

use the same kind of fonts(monospace 10), Here are some differences in FSearch 

Public Sub ReadConfig()
  
  Project.SetSmallFont(gvwFind)
  Project.SetSmallFont(txtCaller)
  $hFont = Font[Settings["/Editor/Font", Project.DEFAULT_FONT]]
  While $hFont.Height > gvwFind.Font.Height
    Dec $hFont.Size
    If $hFont.Size < 6 Then Break
  Wend

  $CW = Paint._EstimateFontCharWidth($hFont)

.....

en:  gtk
$hFont.Height=19
gvwFind.Font.Height=16
$hFont.Size=10-->8
$CW=6

zh_CN:  gtk
$hFont.Height =20
gvwFind.Font.Height=17
$CW=5

zh_CN:  QT
$hFont.Size=19
gvwFind.Font.Height=16
$hFont.Size=10-->8
$CW=5.xxx

en and QT have the same result.Is this the cause of the problem?is it useful?

li XIAOKONG changed the state of the bug to: NeedsInfo.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----