Hot answers tagged

8

You are very close, just on the wrong tab! Go Settings->Options->Canvas & Legend and set 'Bold group names' to true and 'Bold layer names' to false. You've got a few other options to play with here too (like capitalising the layer names and displaying the classification attribute names), which might be useful for you too.


8

Go to settings, options. From here the Applications section has a Font option, unselect default and edit what font you desire. I'm in 2.4, for reference.


7

ArcMap respects the default font size of the operating system. You can change the font size in your control panel. You can also turn on magnification to make all "Classic" Windows apps larger and more readable.


6

Assuming you're using Windows 7, you can change this under > Control Panel > Personalization > Window Color. Choose Item: Icon and the Font Size is what controls the Layers menu size: This is handy when doing a demo, to ensure the audience can read the contents easily. (Another useful one to change is Menu, so the audience can see what you're choosing in ...


6

1) You can use TTFQuery as in Retrieving bounding box and bezier curve data for all glyphs in a .ttf font file in python from ttfquery import describe from ttfquery import glyphquery import ttfquery.glyph as glyph char = "a" font_url ="arial.ttf" font = describe.openFont(font_url) g = glyph.Glyph(char) # or g = glyph.Glyph(glyphquery.glyphName(font, char)) ...


6

A more 'readable' expression to use in the 'data defined override' as suggested by @MrXsquared: To get the fontname: array_get(string_to_array( "legenda", '"'), 1) To get the size: array_get(string_to_array( "legenda", '"'), 3) a little explanation: you can devide the string in logical parts by string_to_array(), with the double qoutes (") as delimiter:...


5

QGIS has a Font marker type which you can use. It will support any (most) fonts installed on the system: In QGIS 2.0 (dev) In QGIS 1.8 You can even stack font markers like I have in the picture.


5

This has been an issue for a while, ever since the new labeling engine has been used. Recently, the development version of QGIS has a new render setup that allows this bug to be reasonably fixed. See: http://hub.qgis.org/issues/3975 The fixed code changes are up for review for inclusion into the core codebase. When that happens, the feature will be ...


5

The name of the font is also there with the style of the font, but you need to select the font first to see its name, as you can see below: In order to see the names, first select the font style, then use the up and down arrows in your keyboard to see font names and not the style. Update: It is not a convenient solution, but you can use the following code ...


5

I see you're using LXDE. Do you have any other window managers installed which you can try? Are any other Qt based applications affected? I suspect this is might be an issue with Qt and your window manager than QGIS specifically, so if this doesn't work you might want to try on Ask Ubuntu or SuperUser. You could try changing the font in the settings > ...


5

I set font-size in a surrounding span when font size alone didn't do the trick <span style="background-color:%s; padding: 5px; font-size: %spx;"> <font face="%s" color="%s">%s</font> </span> https://github.com/anitagraser/TimeManager/commit/75fae61da07ab5c7867287706751d476a6502851


5

I put my comment as an answer: You need to set up the environment variable,export QT_QPA_FONTDIR=<path to font files> for example export QT_QPA_FONTDIR=/usr/share/fonts/open-sans But when using fastcgi you have to do something like: @geraldo nginx fastcgi_param QT_QPA_FONTDIR "/ usr / share / fonts / open-sans" apache SetEnv QT_QPA_FONTDIR / usr ...


5

The font names need to be quoted. Also Times New Roman needs spaces not underscores (tested in QGIS 2.18.14). Try this: CASE WHEN "descriptio" = 'LABAYKU' THEN 'Arial' ELSE 'Times New Roman' END


5

Figured out a working expression. Hope this covers all your cases. Maybe there is also a more elegant solution. First use data defined override: enter your individual expressions. In "Font" it is: substr(substr(regexp_substr( "label",'FNT name(.*?)size'),4),0,length(substr(regexp_substr( "label",'FNT name(.*?)size'),4))-2) and in "size" it is: substr(...


4

Adding fonts to Debian should generally be done at the 'local' or user level, instead of the system. You should copy them into /usr/local/share/fonts (for all users) or ~/.fonts (for a specific user). Reference the official font docs on how to load fonts and ensure they are actually being loaded by fontconfig. If rebuilding the font cache, i.e. fc-cache -fv,...


4

No, there is no such standard. You use whatever is both relevant and readable. Size of font can often relate to the importance of the feature and so will probably vary in labeling of different layers (though too many font sizes can look 'uncomfortable' and should be avoided). Likewise symbol size is often used to denote importance or some quantity, so ...


4

To my knowledge No. You can embed the fonts to an exported map if the build-in security flag of the font file allows it.


4

In ArcMap you can embed document fonts into your exported PDF file. In the "Export Map" dialog, expand "Options", click on Format tab, and check the option "Embed All Document Fonts"


4

Right-click on your layer -> Properties... -> Labels -> According to your CRS, you can use "Meters at scale" or "Map Units"


4

Never tried myself, but it seems you can do something in the menu Customize -> ArcMap Options. Here you'll find a Data View page where you can set the fonts for the labels. A similar option is also present fot the Tables page. This won't basically change your fonts "application-wise", but for labels and tables only.


3

You might try creating a file with the same base name as the shapefile but with a .cpg extension, containing a single line of text identifying the encoding, be it UTF-8 or something else. I am not sure if this will resolve the problem with QGIS, but I have had some success with this method to force multi-byte characters in attribute data to be interpreted ...


3

Here is another tutorial on using Inkscape and FontForge: Creating icon fonts with vector software (i.e. inkscape) and fontforge?


3

It's not currently possible (as of version 2.4). It's a valid request though - you should file it over at http://hub.qgis.org/issues


3

This was determined to be the issue to this problem. It will be marked as the answer soon. When using format tags make sure they close from inside out. Thanks to @kenbuja for clarifying that. "<bol><clr green='255'>"+lab4+"</clr></bol>" NOT "<bol><clr green='255'>"+lab4+"</bol></clr>"


3

Try using &amp; instead of & <BOL>Country Y</BOL><FNT name="ESRI Environmental &amp; Icons"> )</FNT> Disease X Total Avian Cases: 12,345 <FNT size="8">Since: 01 JAN 2016 </FNT>


3

In the Shapefile itself it is not possible to save any layout values, as it does not have these options. With ArcGIS it is not possible to change the look of a single column or value, it is always for the whole table. In QGIS you can do a bit in that direction by using conditional formatting. There you could take other fonts or colors for different values,...


3

Your output suggests that your script found a layout element of type text element in each of three maps, and that it moved each of them. When working with layout elements I think you would be wise to give each of them a unique name on their Size & Position tab so that you can use their name property (e.g. elm.name) to access them. I'm not clear from ...


3

Expanding on my comment, start off by getting the different sections of the label you wish to be in different colours/fonts into separate columns in the attribute table. In the layer properties "Labels" tab choose "Rule-based labeling' from the drop-down. Now for the slightly tricky part. Create a new rule for every word you want to be different. In the "...


3

Assuming you are using ArcGIS for Desktop, in Labels>Expression>Help section states that you need concatenate HTML tags with field specifiers to be able to do such tricks: Specify a conditional if-else statement. These functions label cities with their name in a large, red font if their population is equal to or exceeds 250,000 and in the default ...


3

I figured it out. Runing the command "chcp 437" changes it to english. Then I can select and english font. Apparently it was in japanese.


Only top voted, non community-wiki answers of a minimum length are eligible