Table of Contents

Method Locate

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Locate(string, string)

Finds a font's file: the path as written where it is a full path that is there, else its file name in Folders and then the Fonts folder beside the dll, .shx added to a name of no extension (txt is txt.shx); a TrueType file (.ttf, .ttc, .otf) last in the Fonts folder of Windows, as the system's fonts.

public string Locate(string name, string drawingFolder)

Parameters

name string

The font's name or file.

drawingFolder string

The drawing's folder; not looked in, kept for the callers' sake.

Returns

string

The full path, or null where no folder has it.