RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
DrawTextFTSVG.h
Go to the documentation of this file.
1///
2// Copyright (C) 2020-2022 David Cosgrove and other RDKit contributors
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10// Original author: David Cosgrove (CozChemIx).
11//
12
13#ifndef RDKIT_DRAWTEXTFTSVG_H
14#define RDKIT_DRAWTEXTFTSVG_H
15
16#include <iosfwd>
17
19
20namespace RDKit {
21
22class MolDraw2DSVG;
23
24namespace MolDraw2D_detail {
25
26// ****************************************************************************
27class DrawTextFTSVG : public DrawTextFT {
28 public:
30 const std::string &font_file, std::ostream &oss,
31 std::string &d_act_class);
32 DrawTextFTSVG(const DrawTextFTSVG &) = delete;
36
37 int MoveToFunctionImpl(const FT_Vector *to) override;
38 int LineToFunctionImpl(const FT_Vector *to) override;
40 const FT_Vector *to) override;
42 const FT_Vector *controlTwo,
43 const FT_Vector *to) override;
44
45 // adds x_trans_ and y_trans_ to coords returns x advance distance
46 double extractOutline() override;
47
48 std::ostream &oss_;
49 std::string &d_active_class_;
50};
51
52} // namespace MolDraw2D_detail
53} // namespace RDKit
54
55#endif // RDKIT_DRAWTEXTFTSVG_H
int CubicToFunctionImpl(const FT_Vector *controlOne, const FT_Vector *controlTwo, const FT_Vector *to) override
int ConicToFunctionImpl(const FT_Vector *control, const FT_Vector *to) override
DrawTextFTSVG & operator=(DrawTextFTSVG &&)=delete
int LineToFunctionImpl(const FT_Vector *to) override
DrawTextFTSVG(const DrawTextFTSVG &)=delete
int MoveToFunctionImpl(const FT_Vector *to) override
DrawTextFTSVG & operator=(const DrawTextFTSVG &)=delete
DrawTextFTSVG(DrawTextFTSVG &&)=delete
DrawTextFTSVG(double max_fnt_sz, double min_fnt_sz, const std::string &font_file, std::ostream &oss, std::string &d_act_class)
Std stuff.
bool rdvalue_is(const RDValue_cast_t)