View Issue Details

IDProjectCategoryView StatusLast Update
0002704DraftBugpublic2017-02-17 17:58
ReporterGiulio Buccini Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinux 64 bitOSUbuntu 16.04 LTSOS Version4.4.0-36-generic
Product Version0.16 
Summary0002704: Cannot change font used in dimension lines
DescriptionChanging the font used in dimensions lines has no effect.
The change is simply ignored and the default font is used, no matter what alternative font you select in Draft preferences (and restarting FreeCAD ) or directly in the dimension-line properties.

Obviously, I have double-checked that the font selected was correctly installed on my system, and available to all text/graphic programs (word-processors, 2D drawing programs, editors, etc.).
I have tried different common fonts (i.e. arial, courier, etc.) as well as alternative fonts downloaded from Internet (by specifying the complete path to the .ttf file). No results, the font is ignored.

No warning/error messages are printed out in the terminal console when changing the font.
Steps To ReproduceChanging dimension properties:

1. start FreeCad
2. draw a Cube in Part workbench
3. switch to Draft workbench
4. select a face of the cube and align grid to the face
5. select the dimension tool and draw a dimension on one edge of the face
6. select the dimension line just drawn
7. change the font name in the "Font name" property by using the name of a installed font (i.e. "Arial")
8. the font used is the default one, regardless of what specified in the property


Changing Draft preferences:

1. start FreeCad
2. switch to the Draft workbench
3. select Edit -> Preferences -> Draft -> Text and dimensions
4. enter the name of an installed font name (i.e. "Arial")
5. click the "Ok" button
6. restart FreeCAD
7. draw a Cube in Part workbench
8. switch to Draft workbench
9. select a face of the cube and align grid to the face
10. select the dimension tool and draw a dimension on one edge of the face
11. the font used is the default one, regardless of what specified in preferences
Additional InformationThe bug is not depending on the desktop-interface used on Ubuntu (i.e. Unity or xUbuntu desktops). Also, a new Ubuntu 16.04 was installed from the scratch by a user (see reference link) but the problem is still there.

The problem seems to afflict on Windows 7 also.

The forum discussion is here:
http://forum.freecadweb.org/viewtopic.php?f=3&t=13886&start=10#p137934
Tagsupstream
FreeCAD Information

Activities

Giulio Buccini

2016-09-19 10:26

reporter  

FreeCAD_035.jpg (233,666 bytes)   
FreeCAD_035.jpg (233,666 bytes)   

Giulio Buccini

2016-09-19 10:35

reporter   ~0007323

A further note: deleting the two .cfg files in the .FreeCAD directory does not solve the problem.

Giulio Buccini

2016-09-20 08:26

reporter   ~0007324

SOLVED!
It seems to be not a bug of FreeCAD per se but a library dependency problem.

It is no clear if this is a lib packaging issue of FreeCAD or Ubuntu, but forcing installation of libfontconfig1-dev from command line makes all installed fonts available on the Draft workbench:

sudo apt-get install libfontconfig1-dev

Here the workaround proposed by triplus on the forum:
http://forum.freecadweb.org/viewtopic.php?f=3&t=13886&p=138224#p138165

Giulio Buccini

2016-09-25 15:37

reporter   ~0007330

By the way, I forgot to report version info:

OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.11+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Kunda1

2017-02-02 12:46

administrator   ~0008167

Last edited: 2017-02-02 12:50

OP has this been fixed for you?
Pardon, seems this is an upstream issue and that it is now remedied.
Resolving ticket.

Issue History

Date Modified Username Field Change
2016-09-19 10:26 Giulio Buccini New Issue
2016-09-19 10:26 Giulio Buccini File Added: FreeCAD_035.jpg
2016-09-19 10:35 Giulio Buccini Note Added: 0007323
2016-09-20 08:26 Giulio Buccini Note Added: 0007324
2016-09-25 15:37 Giulio Buccini Note Added: 0007330
2017-02-02 12:46 Kunda1 Note Added: 0008167
2017-02-02 12:46 Kunda1 Assigned To => Kunda1
2017-02-02 12:46 Kunda1 Status new => feedback
2017-02-02 12:48 Kunda1 Tag Attached: upstream
2017-02-02 12:50 Kunda1 Note Edited: 0008167
2017-02-02 12:51 Kunda1 Status feedback => resolved
2017-02-02 12:51 Kunda1 Resolution open => no change required
2017-02-02 12:51 Kunda1 Assigned To Kunda1 =>
2017-02-02 13:23 Kunda1 Severity feature => minor
2017-02-17 17:58 wmayer Status resolved => closed