Dialog and SansSerif text the same

Forums ProRealTime English forum ProBuilder support Dialog and SansSerif text the same

Viewing 5 posts - 1 through 5 (of 5 total)
  • #57577

    I am writing an indicator and I thought that I would try different text styles in the DRAWTEXT command but the DIALOG style and SANSSERIF styles are identical.

    1 user thanked author for this post.
    #57612
    AVT

    Mono, Sans and Serif are the spacings. Dialog is a font name (like Arial also Sans) as are Courier (Mono) or Times Roman (Serif). A bit confusing that mixing of font names and spacing category.

    #57616

    Confusing….. not half!

    I was working from this description which is nothing like what you have suggested.

    https://www.prorealcode.com/documentation/drawtext/

    If I insert an incorrect term I get this suggestion:

    Screenshot_1-2

    But SansSerif and Dialog appear exactly the same.

    #57629
    AVT

    Sorry, I was maybe a bit unclear in writing. What I meant was, that in the syntax for DRAWTEXT there’s a confusing mixture of 2 different things: font names and font category, that’s got nothing to do with the correctness of the syntax itself but with the underlying program.

    Mono: is common short form of Monospaced, meaning every letter/number/sign has the same width-space (be that small letter L or capital letter W).

    Sans: is common short form of SansSerif, meaning all superfluous little hooks on letters/numbers are eliminated (a small vertical line with dot above is enough to make an i, it does not need little hooks at the vertical line).

    Serif: is Serif, which has all those little hooks on letters/numbers/signs which make them 1. nicer to look and 2. easier to spot differences in doubt (big letter i, small letter L, number one).

    (There are sub divisions like (semi-)condensed = narrow and wide; and there are other ways of catagorizing like unicode range (math symbols/emojis/chinese chars), but that’s just aside.)

    Now, Dialog is a font name for a Linotype(TM) font and all it has to to with the catagories above is to fit into one (the Sans or SansSerif one). In the attached pic you see diffences in all those writings – note the special way the small letter G is written compared to others. I do have a free Dialog font variant installed here (dowload here: https://ufonts.com/download/dialog/125431.html ) and I did a test.

    1. change in PRT options the font for everything to Dialog (instead of my standard Arial)
    2. DRAWTEXT with a) zero-line Dialog b) above SansSerif c) above Serif

    Result: neither the program itself (see the G in Aug) nor the drawtext uses this at first glance. Well, I could go and change the systemwide font substitution file as usually what you see is dependend on the fonts you have installed and the order in which they are substituted if not available – but I am really to too lazy to break it down to that level!

    With regard to using what in code, I personally avoid Dialog cause once in the source without comment, it’s later not very intuitive to substitute it with something working.

    1 user thanked author for this post.
    #57635

    OK – I think I understand but I do have this feeling that the answer may have been rather more complicated than the question which in my mind usually means forget there ever was a problem! I’ve decided to just stick with default SanSerif and whatever that produces and live with it. Sometimes life seems too short to worry about how letters are drawn!

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login