lc-soft/LCUI

Fontconfig_GetPath() did not get the font file path #181

lc-soft posted onGitHub

Describe the bug

On the Ubuntu system, Fontconfig_GetPath() does not correctly get the file location of the default font, the default font actually used is in-core.inconsolata

Console output:

...
[font] current font engine is: FreeType
[font] fontconfig enabled
[font] load file: (null)
[font] failed to load file: (null)
[font] load file: (null)
[font] failed to load file: (null)
[font] load file: (null)
[font] failed to load file: (null)
...

To Reproduce Run cammnd:

make
cd test
./helloworld

Check console output.

Expected behavior Font file should load correctly.

Environment (please complete the following information):

  • LCUI version: develop branch
  • Build tools: gcc
  • OS and version: Ubuntu

Additional context

Related code:

https://github.com/lc-soft/LCUI/blob/d52bae5b0368f2d780c980f0e59badcd40c87dfe/src/font/fontlibrary.c#L918-L942

https://github.com/lc-soft/LCUI/blob/d52bae5b0368f2d780c980f0e59badcd40c87dfe/src/font/fontconfig.c#L42-L71


@lc-soft has funded $5.00 to this issue.


posted by issuehunt-app[bot] over 5 years ago

I would like to try fix it.

posted by d4yvector over 5 years ago

@lc-soft has funded $10.00 to this issue.


posted by issuehunt-app[bot] over 5 years ago

hey! I Try solve this.

posted by developerfred over 5 years ago

@lc-soft has rewarded $12.00 to @d4yvector. See it on IssueHunt

  • :moneybag: Total deposit: $15.00
  • :tada: Repository reward(10%): $1.50
  • :wrench: Service fee(10%): $1.50
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$15.00
Rewarded

Rewarded pull request

Recent activities

d4yvector was rewarded by lc-soft for lc-soft/LCUI# 181
over 5 years ago
lc-soft submitted an output to  lc-soft/ LCUI# 181
over 5 years ago