| Anonymous | Login | Signup for a new account | 2013-05-23 23:37 CEST | ![]() |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI | fpcprojects: fpprofiler |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0021964 | Lazarus | IDE | public | 2012-05-06 18:49 | 2012-06-19 01:06 | ||||||||
| Reporter | WYC | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||||||
| Status | feedback | Resolution | open | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Product Version | 0.9.30 | Product Build | |||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0021964: Hint will lose word | ||||||||||||
| Description | Please see the upload file picture. OS: win7/64, linux language: Traditional Chinese lazarus version: all The IDE hint will lose word. and the build program will happen too. It happen in Chinese language( double character Environment) | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Fixed in Revision | |||||||||||||
| LazTarget | - | ||||||||||||
| Widgetset | Win32/Win64 | ||||||||||||
| Attached Files | |||||||||||||
Relationships |
||||||
|
||||||
Notes |
|
|
(0059319) Ihor Lavrynyuk (reporter) 2012-05-06 20:35 edited on: 2012-05-06 20:36 |
yes, I have same problem http://www.youtube.com/watch?v=yWcg94lPxTA [^] |
|
(0060542) Juha Manninen (developer) 2012-06-14 22:01 |
Do you guys have a "Large Font" setting turned on? Do you have a Windows theme with a font bigger than normal? The problem does not happen on every Windows machine, does it? |
|
(0060620) Martin Friebe (manager) 2012-06-19 01:06 |
I did find the following. Not sure if it is related. THintWindow.CalcHintRect always uses "DrawText(Canvas.GetUpdatedHandle..." But THintWindow.Paint may either use "DrawText(Canvas.GetUpdatedHandle..." or ThemeServices.DrawText(Canvas only ThemeServices.DrawText might use another font (not sure) It calls Canvas.TextRect(R, R.Left, R.Top, S, TXTStyle); with TXTStyle.SystemFont := Canvas.Font.IsDefault;//Match System Default Style and Canvas.TextRect, if TXTStyle.SystemFont=true does (lcl\include\canvas.inc:1264): if Style.SystemFont then SelectObject(DC, OnGetSystemFont()); lcl\graphics.pp:2762 OnGetSystemFont := @LocalGetSystemFont; function LocalGetSystemFont: HFont; begin Result := GetStockObject(DEFAULT_GUI_FONT); end; http://msdn.microsoft.com/en-us/library/windows/desktop/dd144925%28v=vs.85%29.aspx [^] DEFAULT_GUI_FONT is only one of many fonts, there is also SYSTEM_FONT If on the target system DEFAULT_GUI_FONT differs from the default font (as by TFont), then the measurement would be wrong. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-05-06 18:49 | WYC | New Issue | |
| 2012-05-06 18:49 | WYC | File Added: hintBug.zip | |
| 2012-05-06 18:49 | WYC | Widgetset | => Win32/Win64 |
| 2012-05-06 20:35 | Ihor Lavrynyuk | Note Added: 0059319 | |
| 2012-05-06 20:36 | Ihor Lavrynyuk | Note Edited: 0059319 | |
| 2012-06-14 22:01 | Juha Manninen | Note Added: 0060542 | |
| 2012-06-18 23:37 | Juha Manninen | LazTarget | => - |
| 2012-06-18 23:37 | Juha Manninen | Status | new => feedback |
| 2012-06-19 01:06 | Martin Friebe | Note Added: 0060620 | |
| 2012-09-10 20:59 | Juha Manninen | Relationship added | has duplicate 0022851 |
| Main | My View | View Issues | Change Log | Roadmap |



